Skip to content
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

Merged

Conversation

tonyyang-svail
Copy link

No description provided.

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")
Copy link
Collaborator

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?

Copy link
Collaborator

@reyoung reyoung Oct 31, 2017

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):
Copy link
Collaborator

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.

@tonyyang-svail tonyyang-svail merged commit 90f4d5e into PaddlePaddle:develop Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants