Module: TensorFlow
- Defined in:
- lib/tensorflow/ops.rb,
lib/tensorflow.rb,
lib/tensorflow/ffi.rb,
lib/tensorflow/math.rb,
lib/tensorflow/utils.rb,
lib/tensorflow/tensor.rb,
lib/tensorflow/context.rb,
lib/tensorflow/raw_ops.rb,
lib/tensorflow/version.rb,
lib/tensorflow/variable.rb,
lib/tensorflow/keras/layers/dense.rb,
lib/tensorflow/keras/datasets/mnist.rb,
lib/tensorflow/keras/layers/dropout.rb,
lib/tensorflow/keras/layers/flatten.rb,
lib/tensorflow/keras/models/sequential.rb
Overview
Generated by ‘rake generate_ops`
Defined Under Namespace
Modules: FFI, Keras, Math, Ops, RawOps, Utils Classes: Context, Error, Tensor, Variable
Constant Summary collapse
- VERSION =
"0.1.1"
Class Attribute Summary collapse
-
.ffi_lib ⇒ Object
Returns the value of attribute ffi_lib.
Class Method Summary collapse
- .constant(value, dtype: nil, shape: nil) ⇒ Object
- .convert_to_tensor(value, dtype: nil) ⇒ Object
- .library_version ⇒ Object
Methods included from Utils
check_status, default_context, download_file, execute, infer_type, load_dataset
Methods included from Ops
eye, fill, identity, matmul, ones, range, timestamp, transpose, zeros, zeros_like
Class Attribute Details
.ffi_lib ⇒ Object
Returns the value of attribute ffi_lib.
32 33 34 |
# File 'lib/tensorflow.rb', line 32 def ffi_lib @ffi_lib end |
Class Method Details
.constant(value, dtype: nil, shape: nil) ⇒ Object
50 51 52 |
# File 'lib/tensorflow.rb', line 50 def constant(value, dtype: nil, shape: nil) Tensor.new(value, dtype: dtype, shape: shape) end |
.convert_to_tensor(value, dtype: nil) ⇒ Object
54 55 56 57 |
# File 'lib/tensorflow.rb', line 54 def convert_to_tensor(value, dtype: nil) value = Tensor.new(value, dtype: dtype) unless value.is_a?(Tensor) value end |
.library_version ⇒ Object
46 47 48 |
# File 'lib/tensorflow.rb', line 46 def library_version FFI.TF_Version end |