Class: TensorStream::Device
- Inherits:
-
Object
- Object
- TensorStream::Device
- Defined in:
- lib/tensor_stream/device.rb
Overview
Class that describes a supported device
Instance Attribute Summary collapse
-
#evaluator ⇒ Object
Returns the value of attribute evaluator.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type, evaluator) ⇒ Device
constructor
A new instance of Device.
Constructor Details
#initialize(name, type, evaluator) ⇒ Device
Returns a new instance of Device.
6 7 8 9 10 |
# File 'lib/tensor_stream/device.rb', line 6 def initialize(name, type, evaluator) @name = name @type = type @evaluator = evaluator end |
Instance Attribute Details
#evaluator ⇒ Object
Returns the value of attribute evaluator.
5 6 7 |
# File 'lib/tensor_stream/device.rb', line 5 def evaluator @evaluator end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/tensor_stream/device.rb', line 5 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/tensor_stream/device.rb', line 5 def type @type end |