This commit introduces DepthwiseFilterEncode to
CanonicalShapeInferenceRule.
Signed-off-by: seongwoo <sw4670.chae@samsung.com>
}
// TODO Support DepthwiseConv2D
- // TODO Support DepthwiseFilterEncode
+ // CASE: DepthwiseFilterEncode
+ loco::NodeShape visit(const loco::DepthwiseFilterEncode *node) final
+ {
+ auto input_tensor_shape = loco::shape_get(node->input()).as<loco::TensorShape>();
+ return loco::NodeShape{node->encoder()->shape(input_tensor_shape)};
+ }
// CASE: EltwiseAdd
loco::NodeShape visit(const loco::EltwiseAdd *node) final