Skip to content

Commit

Permalink
[dredd] add comma
Browse files Browse the repository at this point in the history
ONE-DCO-1.0-Signed-off-by: JuYoung Lee [email protected]
  • Loading branch information
icodo98 committed Sep 23, 2024
1 parent 9d72a81 commit bfb9c6f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions compiler/circle-inspect/src/Dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ void DumpTensorShape::run(std::ostream &os, const circle::Model *model,
for (int8_t i = 0; i < shape->size(); i++)
{
os << shape->Get(i);
if (i != shape->size() - 1)
{
os << ",";
}
}
os << std::endl;
}
Expand Down
1 change: 1 addition & 0 deletions compiler/circle2circle-dredd-recipe-test/test.lst
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ Add(PadV2_001 PASS substitute_padv2_to_pad)
Add(Softmax_001 PASS decompose_softmax)
Add(Softmax_002 PASS decompose_softmax)
Add(StridedSlice_003 PASS substitute_strided_slice_to_reshape)
Add(Pad_002 PASS)

# CSE test

Expand Down
8 changes: 4 additions & 4 deletions res/TensorFlowLiteRecipes/Pad_002/test.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
operand {
name: "ifm"
type: FLOAT32
shape { dim: 1 dim: 3 dim: 3 dim: 2 }
shape_signature { dim: -1 dim: 3 dim: 3 dim: 2 }
shape { dim: 1 dim: 1 dim: 3 dim: 2 }
shape_signature { dim: 1 dim: -1 dim: 3 dim: 2 }
}
operand {
name: "padding"
Expand All @@ -20,8 +20,8 @@ operand {
operand {
name: "ofm"
type: FLOAT32
shape { dim: 1 dim: 5 dim: 7 dim: 2 }
shape_signature { dim: -1 dim: 5 dim: 7 dim: 2 }
shape { dim: 1 dim: 1 dim: 7 dim: 2 }
shape_signature { dim: 1 dim: -1 dim: 7 dim: 2 }
}
operation {
type: "Pad"
Expand Down
2 changes: 1 addition & 1 deletion res/TensorFlowLiteRecipes/Pad_002/test.rule
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
RULE "VERIFY_FILE_FORMAT" $(verify_file_format) '=' 1

RULE "PAD_EXIST" $(op_count PAD) '=' 1
RULE "PAD_SHAPE" $(tensor_shape ofm) '=' -1572
RULE "PAD_SHAPE" $(tensor_shape ofm) '=' 1,-1,7,2

0 comments on commit bfb9c6f

Please sign in to comment.