24.02.1
|
Go to the documentation of this file.
24 #ifndef SRC_DYNAMIC_FUSION_UTILS_UTILS
25 #define SRC_DYNAMIC_FUSION_UTILS_UTILS
32 namespace experimental
34 namespace dynamic_fusion
67 bool mixed_precision =
false,
size_t y() const
Semantic accessor for height as y.
bool is_invalid_tensor(const ITensorInfo *tensor_info)
ITensorInfo has invalid id
DataLayout
[DataLayout enum definition]
@ NHWC
Num samples, height, width, channels.
Class for specifying the size of an image or rectangle.
size_t top
Padding across the height dimension on the top, in elements.
constexpr auto data_layout
PoolingLayerInfo convert_pool_attr_to_pool_info(const Pool2dAttributes &pool_attr, bool mixed_precision=false, DataLayout data_layout=DataLayout::NHWC)
Inline function to convert Pool2dAttributes to PoolingLayerInfo.
bool is_valid_tensor(const ITensorInfo *tensor_info)
ITensorInfo has valid id
PoolingType pool_type() const
size_t left
Padding across the width dimension on the left, in elements.
bool is_alloc_tensor(const ITensorInfo *tensor_info)
Tensor should have backing memory.
Pooling Layer Information struct.
size_t x() const
Semantic accessor for width as x.
bool exclude_padding() const
Attributes are backend-agnostic parameters (in addition to the input/output tensors) of an operator.
bool is_noalloc_tensor(const ITensorInfo *tensor_info)
Tensor should not have backing memory.
static constexpr Id invalid_tensor_id
An invalid tensor id within a domain.
Copyright (c) 2017-2024 Arm Limited.
Store the tensor's metadata.
Padding and stride information class.
TensorInfo tensor_info
Associated tensor info.