Template Struct View

Struct Documentation

template<typename T, const int D>
struct View

Public Functions

HOST_DEVICE View()
HOST_DEVICE View(T *ptr, const ConstantShape<D> &shape)
HOST View(marian::Tensor t)
HOST_DEVICE_INLINE T& marian::functional::View::operator[](size_t i)
const HOST_DEVICE_INLINE T& marian::functional::View::operator[](size_t i) const
HOST_DEVICE_INLINE T& marian::functional::View::operator[](const Array < int, D > & indices)
const HOST_DEVICE_INLINE T& marian::functional::View::operator[](const Array < int, D > & indices) const
HOST_DEVICE_INLINE T* marian::functional::View::data()
const HOST_DEVICE_INLINE T* marian::functional::View::data() const
HOST_DEVICE_INLINE ConstantShape<D>& marian::functional::View::shape()
const HOST_DEVICE_INLINE ConstantShape<D>& marian::functional::View::shape() const
HOST_DEVICE_INLINE size_t marian::functional::View::size() const
std::string debug(int precision = 8, int dispCols = 5)

Public Members

T *data_
ConstantShape<D> shape_