ONE - On-device Neural Engine
|
Shape inference rule for TensorFlow dialect. More...
#include <TFShapeInferenceRule.h>
Public Member Functions | |
bool | support (const API &ver) const final |
Check whether a given API is available or not. | |
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. | |
void | infer (const Context *, const loco::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 TensorFlow dialect.
Definition at line 28 of file TFShapeInferenceRule.h.
|
finalvirtual |
Reimplemented from loco::ShapeInferenceRule.
Definition at line 876 of file TFShapeInferenceRule.cpp.
References loco::Node::dialect(), moco::TFDialect::get(), and loco::Unknown.
|
finalvirtual |
Infer node's shape.
WARNING!!
Implementation SHOULD return true only when it succeeds in inference!
Implements loco::ShapeInferenceRule.
Definition at line 857 of file TFShapeInferenceRule.cpp.
|
finalvirtual |
Return true if this rule recognizes a given dialect.
Implements loco::ShapeInferenceRule.
Definition at line 851 of file TFShapeInferenceRule.cpp.
References moco::TFDialect::get().
|
finalvirtual |
Check whether a given API is available or not.
Reimplemented from loco::ShapeInferenceRule.
Definition at line 846 of file TFShapeInferenceRule.cpp.
References loco::ShapeInferenceRule::V1, and loco::ShapeInferenceRule::V2.