Halide 20.0.0
Halide compiler and libraries
 
Loading...
Searching...
No Matches
Halide::PyTorch::Buffer< T, Dims, InClassDimStorage >::Dimension Class Reference

#include <HalideBuffer.h>

Classes

struct  iterator
 

Public Member Functions

HALIDE_ALWAYS_INLINE int min () const
 The lowest coordinate in this dimension.
 
HALIDE_ALWAYS_INLINE int stride () const
 The number of elements in memory you have to step over to increment this coordinate by one.
 
HALIDE_ALWAYS_INLINE int extent () const
 The extent of the image along this dimension.
 
HALIDE_ALWAYS_INLINE int max () const
 The highest coordinate in this dimension.
 
HALIDE_ALWAYS_INLINE iterator begin () const
 An iterator that points to the min coordinate.
 
HALIDE_ALWAYS_INLINE iterator end () const
 An iterator that points to one past the max coordinate.
 
 Dimension (const halide_dimension_t &dim)
 

Constructor & Destructor Documentation

◆ Dimension()

template<typename T = void, int Dims = AnyDims, int InClassDimStorage = (Dims == AnyDims ? 4 : std::max(Dims, 1))>
Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Dimension::Dimension ( const halide_dimension_t & dim)
inlineexplicit

Definition at line 625 of file HalideBuffer.h.

Member Function Documentation

◆ min()

template<typename T = void, int Dims = AnyDims, int InClassDimStorage = (Dims == AnyDims ? 4 : std::max(Dims, 1))>
HALIDE_ALWAYS_INLINE int Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Dimension::min ( ) const
inline

The lowest coordinate in this dimension.

Definition at line 579 of file HalideBuffer.h.

◆ stride()

template<typename T = void, int Dims = AnyDims, int InClassDimStorage = (Dims == AnyDims ? 4 : std::max(Dims, 1))>
HALIDE_ALWAYS_INLINE int Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Dimension::stride ( ) const
inline

The number of elements in memory you have to step over to increment this coordinate by one.

Definition at line 585 of file HalideBuffer.h.

◆ extent()

template<typename T = void, int Dims = AnyDims, int InClassDimStorage = (Dims == AnyDims ? 4 : std::max(Dims, 1))>
HALIDE_ALWAYS_INLINE int Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Dimension::extent ( ) const
inline

The extent of the image along this dimension.

Definition at line 590 of file HalideBuffer.h.

◆ max()

template<typename T = void, int Dims = AnyDims, int InClassDimStorage = (Dims == AnyDims ? 4 : std::max(Dims, 1))>
HALIDE_ALWAYS_INLINE int Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Dimension::max ( ) const
inline

The highest coordinate in this dimension.

Definition at line 595 of file HalideBuffer.h.

◆ begin()

template<typename T = void, int Dims = AnyDims, int InClassDimStorage = (Dims == AnyDims ? 4 : std::max(Dims, 1))>
HALIDE_ALWAYS_INLINE iterator Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Dimension::begin ( ) const
inline

An iterator that points to the min coordinate.

Definition at line 616 of file HalideBuffer.h.

◆ end()

template<typename T = void, int Dims = AnyDims, int InClassDimStorage = (Dims == AnyDims ? 4 : std::max(Dims, 1))>
HALIDE_ALWAYS_INLINE iterator Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Dimension::end ( ) const
inline

An iterator that points to one past the max coordinate.

Definition at line 621 of file HalideBuffer.h.


The documentation for this class was generated from the following file: