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
@fabiozappo as mentioned in torch.jit.load, the pb needs to have saved modules (for a model). a separate tensor is not part of a module.
You can get the image_size by either query from the model, say model.layer.weight[0] if it can be inferred from the model. or use something similar to torch.save, which can store dictionary dtype: https://pytorch.org/tutorials/beginner/saving_loading_models.html#save
Closing the issue as workarounds above are provided, and this issue has been inactive since 11/2023. Please reach out if there are any further questions or issues.
Hi, I am exporting a model using torch neuron but I can't find any reference to save a custom attribute in the model.
For instance I would like to save the dimension of input image as an integer so to be able to get again this value doing something like:
The text was updated successfully, but these errors were encountered: