Class TensorDataAccessStrided
Defined in File TensorDataAccess.hpp
Inheritance Relationships
Base Type
public nvcv::detail::TensorDataAccessStridedImpl< TensorShapeInfo >
(Template Class TensorDataAccessStridedImpl)
Class Documentation
-
class TensorDataAccessStrided : public nvcv::detail::TensorDataAccessStridedImpl<TensorShapeInfo>
Provides access to tensor data with a strided memory layout.
This class is an interface for accessing tensor data that is stored in a strided memory layout. It provides utilities for checking compatibility and creating instances of the class.
Public Static Functions
-
static inline bool IsCompatible(const TensorData &data)
Checks if the provided tensor data is compatible with a strided layout.
- Parameters:
data – The tensor data to check.
- Returns:
true if the data is compatible with a strided layout, false otherwise.
-
static inline Optional<TensorDataAccessStrided> Create(const TensorData &data)
Creates an instance of this class for the provided tensor data if it is compatible.
- Parameters:
data – The tensor data to use for creation.
- Returns:
An instance of this class if the data is compatible, NullOpt otherwise.
-
static inline bool IsCompatible(const TensorData &data)