You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any time a named scope directly contains methods, or is nested within a scope that contains methods, whether instance factories or other, it needs to be a static class. If that is the case with 'torchvision,' it should definitely be a static class.
Thus, it depends on what methods would be found directly under the 'torchvision' named scope.
TorchSharp has Imager as an argument of torchvision.io.read_image() instead of having those four methods.
So currently TorchSharp doesn't have any methods under the torchvision named scope.
A namespace has to start from the top. Currently we cannot write like this in the user code.
Quite a few code starts from
torchvision
instead of importing objects byfrom torchvision... import xxx
https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html
Now in TorchSharp, we have
TorchSharp.torchvision
namespace.Can we make this a class
TorchSharp.torchvision
like we did forTorchSharp.torch
class?I believe that we have to do like these in C#
or
The text was updated successfully, but these errors were encountered: