|
ONE - On-device Neural Engine
|
Shape inference rule for canonical dialect. More...
#include <CanonicalShapeInferenceRule.h>

Public Member Functions | |
| bool | support (const API &ver) const final |
| Check whether a given API is available or not. | |
| bool | recognize (const Dialect *) const final |
| Return true if this rule recognizes a given dialect. | |
| bool | infer (const Node *, NodeShape &) const final |
| Infer node's shape. | |
| void | infer (const Context *, const Node *, Sink *) const final |
Public Member Functions inherited from loco::ShapeInferenceRule | |
| virtual | ~ShapeInferenceRule ()=default |
Additional Inherited Members | |
Public Types inherited from loco::ShapeInferenceRule | |
| enum class | API { V1 , V2 } |
Shape inference rule for canonical dialect.
Definition at line 28 of file CanonicalShapeInferenceRule.h.
|
finalvirtual |
Reimplemented from loco::ShapeInferenceRule.
Definition at line 763 of file CanonicalShapeInferenceRule.cpp.
References loco::Node::dialect(), loco::CanonicalDialect::get(), and loco::must_cast().
Infer node's shape.
WARNING!!
Implementation SHOULD return true only when it succeeds in inference!
Implements loco::ShapeInferenceRule.
Definition at line 745 of file CanonicalShapeInferenceRule.cpp.
References loco::must_cast().
Return true if this rule recognizes a given dialect.
Implements loco::ShapeInferenceRule.
Definition at line 740 of file CanonicalShapeInferenceRule.cpp.
References loco::CanonicalDialect::get().
Check whether a given API is available or not.
Reimplemented from loco::ShapeInferenceRule.
Definition at line 735 of file CanonicalShapeInferenceRule.cpp.
References loco::must_cast(), loco::ShapeInferenceRule::V1, and loco::ShapeInferenceRule::V2.