Class: TensorStream::Serializer

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

Direct Known Subclasses

Graphml, Pbtext, Yaml

Instance Method Summary collapse

Instance Method Details

#get_string(tensor, session = nil) ⇒ Object



7
8
# File 'lib/tensor_stream/graph_serializers/serializer.rb', line 7

def get_string(tensor, session = nil)
end

#serialize(filename, tensor, session = nil, graph_keys = nil) ⇒ Object



3
4
5
# File 'lib/tensor_stream/graph_serializers/serializer.rb', line 3

def serialize(filename, tensor, session = nil, graph_keys = nil)
  File.write(filename, get_string(tensor, session, graph_keys = nil))
end