Module: TensorStream::Types

Defined in:
lib/tensor_stream/types.rb

Overview

Convenience class for specifying valid data_types

Class Method Summary collapse

Class Method Details

.booleanObject



42
43
44
# File 'lib/tensor_stream/types.rb', line 42

def self.boolean
  :boolean
end

.float16Object



14
15
16
# File 'lib/tensor_stream/types.rb', line 14

def self.float16
  :float16
end

.float32Object



18
19
20
# File 'lib/tensor_stream/types.rb', line 18

def self.float32
  :float32
end

.float64Object



34
35
36
# File 'lib/tensor_stream/types.rb', line 34

def self.float64
  :float64
end

.int16Object



6
7
8
# File 'lib/tensor_stream/types.rb', line 6

def self.int16
  :int16
end

.int32Object



22
23
24
# File 'lib/tensor_stream/types.rb', line 22

def self.int32
  :int32
end

.stringObject



38
39
40
# File 'lib/tensor_stream/types.rb', line 38

def self.string
  :string
end

.uint16Object



10
11
12
# File 'lib/tensor_stream/types.rb', line 10

def self.uint16
  :uint16
end

.uint32Object



26
27
28
# File 'lib/tensor_stream/types.rb', line 26

def self.uint32
  :uint32
end

.uint8Object



30
31
32
# File 'lib/tensor_stream/types.rb', line 30

def self.uint8
  :uint8
end