Class: DNN::Savers::JSONSaver

Inherits:
Saver
  • Object
show all
Defined in:
lib/dnn/core/savers.rb

Instance Method Summary collapse

Methods inherited from Saver

#initialize, #save

Constructor Details

This class inherits a constructor from DNN::Savers::Saver

Instance Method Details

#dump_binObject



107
108
109
110
# File 'lib/dnn/core/savers.rb', line 107

def dump_bin
  data = { version: VERSION, class: @model.class.name, params: get_all_params_base64_data }
  JSON.dump(data)
end