-
Notifications
You must be signed in to change notification settings - Fork 213
Closed
Description
Quite a few code starts from torchvision instead of importing objects by from torchvision... import xxx
https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html
model = torchvision.models.detection.fasterrcnn_resnet50_fpn(weights="DEFAULT")Now in TorchSharp, we have TorchSharp.torchvision namespace.
namespace TorchSharp.torchvision
{
public static partial class models
{Can we make this a class TorchSharp.torchvision like we did for TorchSharp.torch class?
namespace TorchSharp
{
public static partial class torchvision
{
public static partial class models
{I believe that we have to do like these in C#
using TorchSharp.torchvision;
...
models.detection.fasterrcnn_resnet50_fpn();or
using static TorchSharp.torchvision.models.detection;
...
fasterrcnn_resnet50_fpn();Metadata
Metadata
Assignees
Labels
No labels