Sha256: f055b32942b366b8c26949cebf3efbb2d2edb620ec12d835a9c5536b3a9e955a

Contents?: true

Size: 638 Bytes

Versions: 1

Compression:

Stored size: 638 Bytes

Contents

require 'tensor_stream/train/slot_creator'
require 'tensor_stream/train/optimizer'
require 'tensor_stream/train/gradient_descent_optimizer'
require 'tensor_stream/train/momentum_optimizer'
require 'tensor_stream/train/adam_optimizer'
require 'tensor_stream/train/saver'

module TensorStream
  module Trainer
    extend TensorStream::Train::Utils

    def self.write_graph(graph, path, filename, as_text: true, serializer: TensorStream::Pbtext)
      raise "only supports as_text=true for now" unless as_text
      new_filename = File.join(path, filename)
      File.write(new_filename, serializer.new.get_string(graph))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tensor_stream-0.8.1 lib/tensor_stream/trainer.rb