Class: TensorStream::Device

Inherits:
Object
  • Object
show all
Defined in:
lib/tensor_stream/device.rb

Overview

Class that describes a supported device

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#evaluatorObject

Returns the value of attribute evaluator.



5
6
7
# File 'lib/tensor_stream/device.rb', line 5

def evaluator
  @evaluator
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/tensor_stream/device.rb', line 5

def name
  @name
end

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/tensor_stream/device.rb', line 5

def type
  @type
end