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/constant.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/math/math_ops.rb,
lib/tensor_stream/utils/freezer.rb,
lib/tensor_stream/dynamic_stitch.rb,
lib/tensor_stream/math_gradients.rb,
lib/tensor_stream/utils/py_ports.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/generated_stub/ops.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/nn/embedding_lookup.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/helpers/tensor_mixins.rb,
lib/tensor_stream/utils/data_type_utils.rb,
lib/tensor_stream/graph_serializers/yaml.rb,
lib/tensor_stream/evaluator/ruby/math_ops.rb,
lib/tensor_stream/monkey_patches/op_patch.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/evaluator_utils.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/evaluator/ruby/variable_ops.rb,
lib/tensor_stream/graph_deserializers/protobuf.rb,
lib/tensor_stream/graph_serializers/serializer.rb,
lib/tensor_stream/evaluator/ruby/storage_manager.rb,
lib/tensor_stream/graph_deserializers/yaml_loader.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, EmbeddingLookup, Evaluator, Images, ImagesOps, MathHelper, MathOps, MonkeyPatch, NNOps, OpHelper, OpPatch, OpStub, Ops, PyPorts, RandomOps, StringHelper, TensorMixins, Train, Trainer, Types, Utils, VariableOps Classes: Buffer, Constant, ControlFlow, DataTypeUtils, Device, DynamicStitch, EvaluatorUtils, Freezer, Graph, GraphBuilder, GraphKeys, Graphml, InferShape, Initializer, InvalidArgumentError, KeyError, MathGradients, Maths, NN, NotImplementedError, OpMaker, Operation, Packer, Pbtext, Placeholder, Protobuf, ReportTool, RubyStorageManager, Serializer, Session, Tensor, TensorShape, TensorStreamError, ValueError, Variable, VariableScope, Yaml, YamlLoader

Constant Summary collapse

VERSION =
"1.0.9".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, i_var, int_type?, reduced_shape, shape_eval, shape_full_specified, shapes_fully_specified_and_equal

Methods included from Ops

abs, acos, add_n, asin, assert_equal, atan, broadcast_gradient_args, case, cast, cast_axis, check_numerics, clip_by_norm, concat, cond, constant_initializer, cumprod, dynamic_partition, exp, expand_dims, eye, floor_div, gather, glorot_uniform_initializer, gradients, identity, index, invert_permutation, log, log1p, logical_and, maximum, minimum, multiply, negative, not_equal, ones, ones_initializer, ones_like, pack, pad, print, random_normal, random_uniform_initializer, reciprocal, reduce, reduce_mean, reshape, sec, setdiff1d, shape_n, slice, split, sqrt, square, squared_difference, squeeze, stack, stop_gradient, transpose, truncated_normal, unpack, unstack, where, zeros_initializer, zeros_like

Methods included from OpStub

#add, #argmax, #argmin, #ceil, #cos, #div, #equal, #expand_dims, #fill, #floor, #floor_div, #greater, #greater_equal, #less, #less_equal, #log, #mat_mul, #max, #min, #mod, #mul, #negate, #not_equal, #ones_like, #pow, #prod, #random_uniform, #range, #rank, #reshape, #round, #rsqrt, #shape, #sigmoid, #sign, #sin, #size, #strided_slice, #sub, #sum, #tan, #tanh, #tile, #top_k, #zeros

Methods included from Debugging

add_check_numerics_ops

Methods included from Utils

__v_scope_name, apply_data_type_coercion, 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, math, name_scope, placeholder, program, reset_default_graph, session, set_random_seed, train, trainable_variables, variable, variable_scope

Class Method Details

.__version__Object



60
61
62
# File 'lib/tensor_stream.rb', line 60

def self.__version__
  TensorStream::VERSION
end

.nnObject

tensorflow compatibility



160
161
162
# File 'lib/tensor_stream/nn/nn_ops.rb', line 160

def self.nn
  TensorStream::NN
end

.versionObject



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

def self.version
  VERSION
end