Sha256: 16f0c062d5bf9b24e9cbb8ffb53ac4e1b0234519d177af88ea5cf0468a2785eb

Contents?: true

Size: 299 Bytes

Versions: 9

Compression:

Stored size: 299 Bytes

Contents

module TensorStream
  # this class represents an evaluator specific native buffer
  class Buffer
    attr_accessor :data_type, :buffer, :dirty, :name

    def initialize(data_type:, buffer:)
      @data_type = data_type
      @buffer = buffer
    end

    def to_ruby
      buffer
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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