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
Hi, first of all thank you so much for the api, its so simple to load the torch model into c api now and see the real quick results, But how about loading a custom model which is in torch(.t7) format.
how to add custom layers into your code?
Basically I have a model, and I tried loading it using your API, but got stuck and error was:
ERROR:
std::shared_ptrcpptorch::object object_loader::read_object(std::istream&): Assertion `0' failed.
Aborted (core dumped)
The text was updated successfully, but these errors were encountered:
That error was due to custom "cudnn.MODULENAME"(Ex. Cudnn.SpatialConvolution),
Check out the functions in your torch (.t7) files using torch.load and convert all the cudnn. to nn. using cudnn.convert() function. once all have been converted to nn. then use cpp-torch and it should work fine.
Hi, first of all thank you so much for the api, its so simple to load the torch model into c api now and see the real quick results, But how about loading a custom model which is in torch(.t7) format.
how to add custom layers into your code?
Basically I have a model, and I tried loading it using your API, but got stuck and error was:
ERROR:
std::shared_ptrcpptorch::object object_loader::read_object(std::istream&): Assertion `0' failed.
Aborted (core dumped)
The text was updated successfully, but these errors were encountered: