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
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