class Tensorflow::Printers::GraphDef
Attributes
graph_def[R]
Public Class Methods
new(graph_def)
click to toggle source
# File lib/tensorflow/printers/graph_def.rb, line 8 def initialize(graph_def) @graph_def = graph_def end
Public Instance Methods
print(io_stream=STDOUT)
click to toggle source
# File lib/tensorflow/printers/graph_def.rb, line 19 def print(io_stream=STDOUT) #io_stream << ERB.new(self.template, nil, trim_mode: "<>").result_with_hash(:graph_def => self.graph_def) raw = Erubi::Engine.new(self.template, filename: 'graph_def.erb') io_stream << eval(raw.src) end
template()
click to toggle source
# File lib/tensorflow/printers/graph_def.rb, line 12 def template @template ||= begin path = File.join(__dir__, 'graph_def.erb') File.read(path, :mode => 'rb') end end