Compute Library
 22.11
FloorContent Class Reference

#include <OperatorGraphImpl.h>

Collaboration diagram for FloorContent:
[legend]

Public Member Functions

 FloorContent ()=default
 
 FloorContent (const OperatorGraph::Implementation *graph, Id id, const FloorDescriptor &desc, const ITensorDescPack< OpTensorContent > &tensors)
 
 ~FloorContent ()=default
 
 FloorContent (const FloorContent &)=default
 
FloorContentoperator= (const FloorContent &)=default
 
 FloorContent (FloorContent &&)=default
 
FloorContentoperator= (FloorContent &&)=default
 
bool operator== (const OperatorContent &other) const override
 
OperatorComplexity complexity () const override
 
Status translate (ClKernelGraph &kernel_graph) const override
 
- Public Member Functions inherited from OperatorContent
 OperatorContent ()=default
 
 OperatorContent (const OperatorGraph::Implementation *graph, Id id, const ITensorDescPack< OpTensorContent > &tensors)
 
 OperatorContent (const OperatorContent &op)=default
 
OperatorContentoperator= (const OperatorContent &op)=default
 
 OperatorContent (OperatorContent &&op)=default
 
OperatorContentoperator= (OperatorContent &&op)=default
 
virtual ~OperatorContent ()=default
 

Additional Inherited Members

- Public Types inherited from OperatorContent
using Id = DependencyGraph::Id
 

Detailed Description

Definition at line 184 of file OperatorGraphImpl.h.

Constructor & Destructor Documentation

◆ FloorContent() [1/4]

FloorContent ( )
default

◆ FloorContent() [2/4]

FloorContent ( const OperatorGraph::Implementation graph,
Id  id,
const FloorDescriptor desc,
const ITensorDescPack< OpTensorContent > &  tensors 
)
inline

Definition at line 188 of file OperatorGraphImpl.h.

References arm_compute::experimental::dynamic_fusion::operator==().

189  : OperatorContent(graph, id, tensors), desc(desc)
190  {
191  }

◆ ~FloorContent()

~FloorContent ( )
default

◆ FloorContent() [3/4]

FloorContent ( const FloorContent )
default

◆ FloorContent() [4/4]

FloorContent ( FloorContent &&  )
default

Member Function Documentation

◆ complexity()

◆ operator=() [1/2]

FloorContent& operator= ( const FloorContent )
default

◆ operator=() [2/2]

FloorContent& operator= ( FloorContent &&  )
default

◆ operator==()

bool operator== ( const OperatorContent other) const
overridevirtual

Implements OperatorContent.

Definition at line 134 of file OperatorGraphImpl.cpp.

References Conv2dContent::desc.

135 {
136  const auto converted = *utils::cast::polymorphic_downcast<const FloorContent *>(&other);
137  return desc == converted.desc;
138 }

◆ translate()

Status translate ( ClKernelGraph kernel_graph) const
overridevirtual

Implements OperatorContent.

Definition at line 358 of file OperatorGraphImpl.cpp.

References arm_compute::ACL_DST_0, arm_compute::ACL_SRC_0, ITensorDescPack< TDesc >::add_const_tensor(), ClKernelGraph::add_kernel(), ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_RETURN_ON_ERROR, Conv2dContent::desc, arm_compute::test::validation::dst, ClKernelGraph::get_tensor(), UnitWorkloadStage::Run, arm_compute::test::validation::src, arm_compute::experimental::dynamic_fusion::TStoreIndirectWidthSelect, and ClFloorKernel::validate().

359 {
360  const auto src = _tensors.get_const_tensor(TensorType::ACL_SRC_0);
361  const auto dst = _tensors.get_const_tensor(TensorType::ACL_DST_0);
363 
364  ITensorDescPack<ClKernelTensor> tensors;
365 
366  DependencyGraph::Id src_id;
367  auto st = add_kernel_tensor(kernel_graph, *_graph, *src, src_id);
369  tensors.add_const_tensor(ACL_SRC_0, kernel_graph.get_tensor(src_id));
370 
371  DependencyGraph::Id dst_id;
372  st = add_kernel_tensor(kernel_graph, *_graph, *dst, dst_id);
374  tensors.add_const_tensor(ACL_DST_0, kernel_graph.get_tensor(dst_id));
375 
376  DependencyGraph::Id add_id;
377  ClKernelConfig config{ UnitWorkloadStage{ UnitWorkloadStage::Stage::Run }, TileDescriptor{}, StoreType::TStoreIndirectWidthSelect };
378 
379  st = ClFloorKernel::validate(src->desc, dst->desc);
381 
382  st = kernel_graph.add_kernel<ClFloorKernel>(config, ClFloorKernelDescriptor{ desc }, tensors, add_id);
384 
385  return Status{};
386 }
#define ARM_COMPUTE_RETURN_ON_ERROR(status)
Checks if a status contains an error and returns it.
Definition: Error.h:204
static Status validate(const ITensorInfo *src, const ITensorInfo *dst)
SimpleTensor< float > src
Definition: DFT.cpp:155
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
Definition: Validate.h:157

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