Class: DNN::Param
- Inherits:
-
Object
- Object
- DNN::Param
- Defined in:
- lib/dnn/core/param.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#grad ⇒ Object
Returns the value of attribute grad.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(data = nil, grad = nil) ⇒ Param
constructor
A new instance of Param.
Constructor Details
#initialize(data = nil, grad = nil) ⇒ Param
Returns a new instance of Param.
7 8 9 10 11 |
# File 'lib/dnn/core/param.rb', line 7 def initialize(data = nil, grad = nil) @data = data @grad = grad @name = nil end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/dnn/core/param.rb', line 4 def data @data end |
#grad ⇒ Object
Returns the value of attribute grad.
5 6 7 |
# File 'lib/dnn/core/param.rb', line 5 def grad @grad end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/dnn/core/param.rb', line 3 def name @name end |