We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I am using syft 0.2.x. I want to determine the size of the model. What is the correct way to determine the size? I have two options:
syft 0.2.x
Option: 1
val modelFile = File(modelFileLocation) modelFile.length()
Option 2
SyftState.loadSyftState(modelFile) size of syftstate
In terms of model size and number of parameters, SyftState should be used or modelFile.length()?
SyftState
modelFile.length()
Thanks.
The text was updated successfully, but these errors were encountered:
@mustansarsaeed number of parameters can be calculated from model
val num_params = model.getParamArray().reduce{ sum, tensor -> sum + tensor.shape().reduce{ m,e -> m*e } }
Sorry, something went wrong.
No branches or pull requests
Hi, I am using
syft 0.2.x
. I want to determine the size of the model. What is the correct way to determine the size? I have two options:Option: 1
Option 2
In terms of model size and number of parameters,
SyftState
should be used ormodelFile.length()
?Thanks.
The text was updated successfully, but these errors were encountered: