issue-tracking icon indicating copy to clipboard operation
issue-tracking copied to clipboard

[feature request] add support for pytorch models in function set_model_graph

Open Idodox opened this issue 4 years ago • 5 comments

Currently, there's only support for TF model graphs.

Idodox avatar Feb 27 '20 13:02 Idodox

Good idea! Do you have code that turns a pytorch model graph into JSON or a string rep?

dsblank avatar Feb 27 '20 15:02 dsblank

You can get some info by simply printing the model:

from torchvision import models
model = models.vgg16()
print(model)

There's also a package called torchsummary that offers more detail:

from torchvision import models
from torchsummary import summary

vgg = models.vgg16()
summary(vgg, (3, 224, 224))

Idodox avatar Mar 01 '20 13:03 Idodox

That is useful info. Thanks @Idodox , it is on our list!

dsblank avatar Apr 23 '20 20:04 dsblank

There is also the option of converting the model to ONNX.

george-gca avatar Feb 26 '21 17:02 george-gca

Indeed! We have some work on that front coming soon. I'll report back here.

dsblank avatar Feb 26 '21 18:02 dsblank

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Nov 13 '23 21:11 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Nov 19 '23 21:11 github-actions[bot]