-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add fill constant like #5222
Add fill constant like #5222
Conversation
self.inputs = {'Input': np.random.random((219, 232)).astype("float32")} | ||
self.attrs = {'value': 3.5, 'shape': [132, -1, 7], 'dim_idx': 1} | ||
|
||
out = np.random.random((132, 232, 7)).astype("float32") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this RNG cause random passing/failure of unit tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the random seed is fixed in the base class, i.e., OpTest.
@@ -3,13 +3,27 @@ | |||
from op_test import OpTest | |||
|
|||
|
|||
class TestFillConstantBatchSizeLikeOp(OpTest): | |||
class TestFillConstantBatchSizeLikeOp1(OpTest): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am afraid that suffixes like 1 and 2 might not be meaningful enough.
No description provided.