Class: DNN::Loaders::Loader
- Inherits:
-
Object
- Object
- DNN::Loaders::Loader
- Defined in:
- lib/dnn/core/savers.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(model) ⇒ Loader
constructor
A new instance of Loader.
- #load(file_name) ⇒ Object
Constructor Details
#initialize(model) ⇒ Loader
Returns a new instance of Loader.
9 10 11 |
# File 'lib/dnn/core/savers.rb', line 9 def initialize(model) @model = model end |
Instance Method Details
#load(file_name) ⇒ Object
13 14 15 |
# File 'lib/dnn/core/savers.rb', line 13 def load(file_name) load_bin(File.binread(file_name)) end |