Skip to content

Models Methods


as_api().models.get_weights_hash(framework, model, weights=None)

Calculate the weights hash of the trained neural network.


  • framework: String. Framework used. Supported options are keras, tf, pytorch, and caffe.
  • model: String. Filepath of the saved model. For Caffe, provide the filepath of the model definition file.
  • weights: Optional. String. For Caffe only, the filepath of the saved weights.