Sha256: 387fd7326df611994f4b4e9f45c3eb733527caa73a7487763e8f2461b397940a

Contents?: true

Size: 377 Bytes

Versions: 9

Compression:

Stored size: 377 Bytes

Contents

TensorStream::OpMaker.define_operation :floor do |op|
  op.what_it_does "Returns element-wise largest integer not greater than x."

  op.parameter :input_a, "tensor X", validate: 'FLOATING_POINT_TYPES'

  op.option :name, "Optional name", :nil

  op.define_gradient do |grad, node, params|
    nil
  end

  op.define_shape do |tensor|
    tensor.inputs[0].shape.shape
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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