lib/tensorflow.rb in tensorflow-0.1.1 vs lib/tensorflow.rb in tensorflow-0.1.2
- old
+ new
@@ -1,31 +1,56 @@
# dependencies
require "ffi"
require "npy"
+require "numo/narray"
# stdlib
+require "digest"
require "fileutils"
require "forwardable"
+require "json"
require "net/http"
require "tempfile"
+require "zlib"
# modules
-require "tensorflow/utils"
+require "tensorflow/audio"
+require "tensorflow/bitwise"
require "tensorflow/context"
+require "tensorflow/image"
+require "tensorflow/io"
+require "tensorflow/linalg"
require "tensorflow/math"
+require "tensorflow/nn"
require "tensorflow/ops"
require "tensorflow/raw_ops"
+require "tensorflow/strings"
require "tensorflow/tensor"
+require "tensorflow/utils"
require "tensorflow/variable"
require "tensorflow/version"
+# data
+require "tensorflow/data/dataset"
+require "tensorflow/data/batch_dataset"
+require "tensorflow/data/shuffle_dataset"
+require "tensorflow/data/tensor_slice_dataset"
+
# keras
+require "tensorflow/keras/datasets/boston_housing"
+require "tensorflow/keras/datasets/cifar10"
+require "tensorflow/keras/datasets/cifar100"
+require "tensorflow/keras/datasets/fashion_mnist"
+require "tensorflow/keras/datasets/imdb"
require "tensorflow/keras/datasets/mnist"
+require "tensorflow/keras/datasets/reuters"
require "tensorflow/keras/layers/dense"
require "tensorflow/keras/layers/dropout"
require "tensorflow/keras/layers/flatten"
+require "tensorflow/keras/metrics/mean"
require "tensorflow/keras/models/sequential"
+require "tensorflow/keras/utils"
module TensorFlow
class Error < StandardError; end
class << self
@@ -39,10 +64,12 @@
class << self
include Ops
include Utils
extend Forwardable
+ def_delegators Linalg, :eye, :matmul
def_delegators Math, :abs, :acos, :acosh, :add, :add_n, :argmax, :argmin, :asin, :asinh, :atan, :atan2, :atanh, :cos, :cosh, :cumsum, :divide, :equal, :exp, :floor, :greater, :greater_equal, :less, :less_equal, :logical_and, :logical_not, :logical_or, :maximum, :minimum, :multiply, :negative, :not_equal, :pow, :reduce_all, :reduce_any, :reduce_logsumexp, :reduce_max, :reduce_mean, :reduce_min, :reduce_prod, :reduce_sum, :round, :scalar_mul, :sigmoid, :sign, :sin, :sinh, :sqrt, :square, :subtract, :tan, :tanh, :truediv
+ def_delegators NN, :space_to_batch
def library_version
FFI.TF_Version
end