Class: TensorStream::Serializer
- Inherits:
-
Object
- Object
- TensorStream::Serializer
- Defined in:
- lib/tensor_stream/graph_serializers/serializer.rb
Instance Method Summary collapse
- #get_string(tensor, session = nil) ⇒ Object
- #serialize(filename, tensor, session = nil, graph_keys = nil) ⇒ Object
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 |