ONE - On-device Neural Engine
|
Shape inference rule for COpDialect. More...
#include <COpShapeInferenceRule.h>
Public Member Functions | |
bool | recognize (const loco::Dialect *) const final |
Return true if this rule recognizes a given dialect. | |
bool | infer (const loco::Node *, loco::NodeShape &) const final |
Infer node's shape. | |
Public Member Functions inherited from loco::ShapeInferenceRule | |
virtual | ~ShapeInferenceRule ()=default |
virtual bool | support (const API &api) const |
Check whether a given API is available or not. | |
virtual void | infer (const Context *, const Node *, Sink *) const |
Additional Inherited Members | |
Public Types inherited from loco::ShapeInferenceRule | |
enum class | API { V1 , V2 } |
Shape inference rule for COpDialect.
Definition at line 33 of file COpShapeInferenceRule.h.
|
finalvirtual |
Infer node's shape.
WARNING!!
Implementation SHOULD return true only when it succeeds in inference!
Implements loco::ShapeInferenceRule.
Definition at line 35 of file COpShapeInferenceRule.cpp.
References loco::Node::dialect(), loco::TensorShape::dim(), loco::NodeShape::domain(), locoex::COpDialect::get(), loco::TensorShape::rank(), loco::NodeShape::set(), loco::shape_get(), and loco::Tensor.
|
finalvirtual |
Return true if this rule recognizes a given dialect.
Implements loco::ShapeInferenceRule.
Definition at line 30 of file COpShapeInferenceRule.cpp.
References locoex::COpDialect::get().