Template Struct View¶
Defined in File tensor.h
Struct Documentation¶
-
template<typename
T
, const intD
>
structView
¶ 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
-
HOST_DEVICE