Module: TensorStream

Extended by:
Debugging, OpHelper, Ops, Utils
Defined in:
lib/tensor_stream.rb,
lib/tensor_stream/ops.rb,
lib/tensor_stream/graph.rb,
lib/tensor_stream/types.rb,
lib/tensor_stream/utils.rb,
lib/tensor_stream/device.rb,
lib/tensor_stream/images.rb,
lib/tensor_stream/tensor.rb,
lib/tensor_stream/session.rb,
lib/tensor_stream/trainer.rb,
lib/tensor_stream/version.rb,
lib/tensor_stream/variable.rb,
lib/tensor_stream/nn/nn_ops.rb,
lib/tensor_stream/operation.rb,
lib/tensor_stream/exceptions.rb,
lib/tensor_stream/graph_keys.rb,
lib/tensor_stream/initializer.rb,
lib/tensor_stream/placeholder.rb,
lib/tensor_stream/train/saver.rb,
lib/tensor_stream/train/utils.rb,
lib/tensor_stream/control_flow.rb,
lib/tensor_stream/tensor_shape.rb,
lib/tensor_stream/graph_builder.rb,
lib/tensor_stream/dynamic_stitch.rb,
lib/tensor_stream/math_gradients.rb,
lib/tensor_stream/variable_scope.rb,
lib/tensor_stream/train/optimizer.rb,
lib/tensor_stream/evaluator/buffer.rb,
lib/tensor_stream/helpers/op_helper.rb,
lib/tensor_stream/train/slot_creator.rb,
lib/tensor_stream/debugging/debugging.rb,
lib/tensor_stream/evaluator/evaluator.rb,
lib/tensor_stream/helpers/infer_shape.rb,
lib/tensor_stream/profile/report_tool.rb,
lib/tensor_stream/monkey_patches/patch.rb,
lib/tensor_stream/train/adam_optimizer.rb,
lib/tensor_stream/evaluator/ruby/nn_ops.rb,
lib/tensor_stream/helpers/string_helper.rb,
lib/tensor_stream/evaluator/ruby/math_ops.rb,
lib/tensor_stream/train/adagrad_optimizer.rb,
lib/tensor_stream/train/rmsprop_optimizer.rb,
lib/tensor_stream/evaluator/base_evaluator.rb,
lib/tensor_stream/evaluator/ruby/array_ops.rb,
lib/tensor_stream/evaluator/ruby/check_ops.rb,
lib/tensor_stream/evaluator/ruby_evaluator.rb,
lib/tensor_stream/graph_serializers/packer.rb,
lib/tensor_stream/graph_serializers/pbtext.rb,
lib/tensor_stream/train/adadelta_optimizer.rb,
lib/tensor_stream/train/momentum_optimizer.rb,
lib/tensor_stream/evaluator/ruby/images_ops.rb,
lib/tensor_stream/evaluator/ruby/random_ops.rb,
lib/tensor_stream/graph_serializers/graphml.rb,
lib/tensor_stream/train/learning_rate_decay.rb,
lib/tensor_stream/graph_deserializers/protobuf.rb,
lib/tensor_stream/graph_serializers/serializer.rb,
lib/tensor_stream/train/gradient_descent_optimizer.rb,
lib/tensor_stream/evaluator/operation_helpers/math_helper.rb,
lib/tensor_stream/evaluator/operation_helpers/array_ops_helper.rb

Overview

Ruby port of tensorflow’s learning rate decay functions

Defined Under Namespace

Modules: ArrayOps, ArrayOpsHelper, CheckOps, Debugging, Evaluator, Images, ImagesOps, MathHelper, MathOps, MonkeyPatch, NNOps, OpHelper, Ops, RandomOps, StringHelper, Train, Trainer, Types, Utils Classes: Buffer, ControlFlow, Device, DynamicStitch, Graph, GraphBuilder, GraphKeys, Graphml, InferShape, Initializer, InvalidArgumentError, KeyError, MathGradients, NN, NotImplementedError, Operation, Packer, Pbtext, Placeholder, Protobuf, ReportTool, Serializer, Session, Tensor, TensorShape, TensorStreamError, ValueError, Variable, VariableScope

Constant Summary collapse

VERSION =
'0.9.8'.freeze

Constants included from Ops

Ops::FLOATING_POINT_TYPES, Ops::INTEGER_TYPES, Ops::NUMERIC_TYPES

Class Method Summary collapse

Methods included from OpHelper

_op, cons, format_source, fp_type?, i_cons, i_op, int_type?, reduced_shape, shape_eval, shape_full_specified, shapes_fully_specified_and_equal

Methods included from Ops

abs, acos, add, add_n, argmax, argmin, asin, assert_equal, atan, broadcast_gradient_args, cast, ceil, check_numerics, concat, cond, constant_initializer, cos, cumprod, div, equal, exp, expand_dims, eye, fill, floor, floor_div, gather, glorot_uniform_initializer, gradients, greater, greater_equal, identity, index, invert_permutation, less, less_equal, log, log1p, logical_and, matmul, max, maximum, min, minimum, mod, mul, multiply, negate, negative, not_equal, ones, ones_initializer, ones_like, pack, pad, pow, print, random_normal, random_uniform, random_uniform_initializer, range, rank, reciprocal, reduce_mean, reduce_prod, reduce_sum, reshape, round, setdiff1d, shape, shape_n, sigmoid, sign, sin, size, slice, split, sqrt, square, squared_difference, squeeze, stack, stop_gradient, sub, subtract, tan, tanh, tile, transpose, truncated_normal, unpack, unstack, where, zeros, zeros_initializer, zeros_like

Methods included from Debugging

add_check_numerics_ops

Methods included from Utils

__v_scope_name, assign, check_allowed_types, check_data_types, check_if_dense, colocate_with, constant, control_dependencies, convert_to_tensor, device, disable_eager_execution, dynamic_stitch, enable_eager_execution, executing_eagerly?, float32, get_collection, get_default_graph, get_variable, get_variable_scope, global_variables_initializer, graph, group, image, layers, list_local_devices, name_scope, norm_dtype, placeholder, program, reset_default_graph, session, set_random_seed, train, trainable_variables, variable, variable_scope

Class Method Details

.__version__Object



53
54
55
# File 'lib/tensor_stream.rb', line 53

def self.__version__
  TensorStream::VERSION
end

.nnObject

tensorflow compatibility



142
143
144
# File 'lib/tensor_stream/nn/nn_ops.rb', line 142

def self.nn
  TensorStream::NN
end

.versionObject



4
5
6
# File 'lib/tensor_stream/version.rb', line 4

def self.version
  VERSION
end