Sha256: 587fed6432bedc8f3b6002a18efac66a9c5d93d37b4285458f8298b13fabbc15

Contents?: true

Size: 832 Bytes

Versions: 9

Compression:

Stored size: 832 Bytes

Contents

TensorStream::OpMaker.define_operation :tile do |op|
  op.what_it_does "Constructs a tensor by tiling a given tensor."
  op.what_it_does "This operation creates a new tensor by replicating input multiples times."
  op.what_it_does "The output tensor's i'th dimension has input.dims(i) * multiples[i] elements,"
  op.what_it_does "and the values of input are replicated multiples[i] times along the 'i'th dimension. For example, tiling [a b c d] by [2] produces [a b c d a b c d]."

  op.parameter :input, "A tensor"
  op.parameter :multiples, "Must be one of the following types: int32, int64. 1-D. Length must be the same as the number of dimensions in input"
  op.option :name, "Optional name", :nil


  op.define_gradient do |grad, node, params|
    nil # non differentiable
  end

  op.define_shape do |tensor|
    nil
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tensor_stream-1.0.9 lib/tensor_stream/ops/tile.rb
tensor_stream-1.0.8 lib/tensor_stream/ops/tile.rb
tensor_stream-1.0.7 lib/tensor_stream/ops/tile.rb
tensor_stream-1.0.6 lib/tensor_stream/ops/tile.rb
tensor_stream-1.0.5 lib/tensor_stream/ops/tile.rb
tensor_stream-1.0.4 lib/tensor_stream/ops/tile.rb
tensor_stream-1.0.3 lib/tensor_stream/ops/tile.rb
tensor_stream-1.0.2 lib/tensor_stream/ops/tile.rb
tensor_stream-1.0.1 lib/tensor_stream/ops/tile.rb