File ITensor.hpp

Parent directory (DlSystem)

Definition (DlSystem/ITensor.hpp)

Includes

Classes

Full File Listing

namespace DlSystem
class ITensor
#include <ITensor.hpp>

Public Types

using iterator = DlSystem::ITensorItr<false>
using const_iterator = DlSystem::ITensorItr<true>

Public Functions

iterator begin()
const_iterator begin() const
const_iterator cbegin() const
iterator end()
const_iterator end() const
const_iterator cend() const
TensorShape getShape() const

Gets the shape of this tensor.

The last element of the vector represents the fastest varying dimension and the zeroth element represents the slowest varying dimension, etc.

Returns

A TensorShape handle holding the tensor dimensions.

size_t getSize() const

Returns the element size of the data in the tensor (discounting strides). This is how big a buffer would need to be to hold the tensor data contiguously in memory.

Returns

The size of the tensor (in elements).

void serialize(std::ostream &output) const = delete
bool isQuantized() const

Returns true if tensor is quantized.

Returns

True if tensor is quantized, else false

float GetDelta() const

Returns the offset of tensor.

Returns

Offset of tensor

float GetOffset() const

Returns the offset of tensor.

Returns

Offset of tensor