class Tensorflow::Data::Iterator
Attributes
output_shapes[R]
output_types[R]
Public Class Methods
from_structure(output_types, output_shapes=[], shared_name: '')
click to toggle source
# File lib/tensorflow/data/iterator.rb, line 6 def self.from_structure(output_types, output_shapes=[], shared_name: '') ReinitializableIterator.new(output_types, output_shapes, shared_name: shared_name) end
new(output_types, output_shapes=[])
click to toggle source
# File lib/tensorflow/data/iterator.rb, line 10 def initialize(output_types, output_shapes=[]) @output_types = output_types @output_shapes = output_shapes end
Public Instance Methods
get_next()
click to toggle source
# File lib/tensorflow/data/iterator.rb, line 15 def get_next RawOps.iterator_get_next(@iterator, output_types: self.output_types, output_shapes: self.output_shapes) end