Skip to content

Models Methods

models.get_weights_hash

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

Calculate the weights hash of the trained neural network.

Parameters

  • 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.