-
Notifications
You must be signed in to change notification settings - Fork 1.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
[OpTestPy] add greater grid_sampler 2 op all utest #7994
[OpTestPy] add greater grid_sampler 2 op all utest #7994
Conversation
Thanks for your contribution! |
…into add_greater_grid_sampler
…into add_greater_grid_sampler
…into add_greater_grid_sampler
…into add_greater_grid_sampler
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.
LGTM
outputs={"Out": ["cast_data_out"], }, | ||
attrs={"in_dtype": int(0), | ||
"out_dtype": int(2)}) | ||
cast_out.outputs_dtype = {"cast_data_out": np.int32} |
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.
这个outputs_dtype为啥不写到opconfig里面呢
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.
也行,改了
st.sampled_from(["type_int64", "type_float", "type_int32"])) | ||
|
||
############### ToDo #################### | ||
assume(process_type != "type_int32") |
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.
将类型约束放在is_program_valid
函数中
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.
已改
return True | ||
|
||
def sample_program_configs(self, draw): | ||
in_shape = draw( |
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.
in_shape
-> in_shape_x
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.
已改
return self.get_predictor_configs(), ["grid_sampler"], (1e-5, 1e-5) | ||
|
||
def add_ignore_pass_case(self): | ||
def teller1(program_config, predictor_config): |
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.
grid_sampler 输出有diff是吗?
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.
嗯,cpu和gpu都有diff
…into add_greater_grid_sampler
…432/Paddle-Lite into add_greater_grid_sampler
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.
LGTM
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.
LGTM
No description provided.