pytocs
pytocs copied to clipboard
Converts Python source to C#
python ``` python d_keys = d_keys or (d_model//n_heads) ``` cs ``` cs d_keys = d_keys || d_model / n_heads; ``` correct ``` cs d_keys = d_keys ?? d_model / n_heads;...
@uxmal You have been doing this for close to 6 years. Now we need to challenge you for something you would not have conceived 6 years ago. **.NET is meeting...
[convert the [:,t,:] syntax of python language into C# language with high performance](https://github.com/dotnet/TorchSharp/issues/638) Perhaps users here could contribute to this discussion? By doing so, create a more efficient python to...
How can i convert Python project containing dependencies like Numpy etc ?
This has been done by 2 major transpilers before and it would be tremendously useful. Pytocs would look what libraries are imported and visit their source and if they are...
int N = 10; Are you open to support Enumerable.range(0, N) instruction. Best Regards,
Array ellipsis slicing like this `result[..., 1:] *= 2` not supported. Exception throw in ExpTranslator.VisitEllipsis
I found "getch()" in a C# file generated by Py To Cs.
Many Python projects use comments in doc strings as type annotations, e.g. ```Python """ :param str sender :param str recipient :param int copies :rtype int """ def send_copies_to(sender, recipient, copies():...
Currently, the code is just forwarded ‘as is’ during conversion and gives a C# result of type integer. The problem appy to Python (3.x and more). Example: Py: b=3; r=...