Skip to content

[Discuss] How to verify the correction of the implementation of op when the input's shape is bigger? #10168

@chengduoZH

Description

@chengduoZH

Currently, we have completed many ops' forward and backward and ensured their basic function in small data shape by the unit test. But we can't 100% confirm that there is no error in code implementation because the input shape is too small in our unit test, some error may appear only when the input shape is bigger.
Now, there are two implementations in this case, #9120 and #10150. Although the two bug has been fixed, it takes a long time to locate it. I am not sure whether other ops are in this case too. So how can we avoid this error happen again?

One solution that I think of is to increase the input’s shape of Op and put it on CE to verify its correctness.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions