-
Notifications
You must be signed in to change notification settings - Fork 350
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
feat: lowering replace aten.full_like with aten.full #3077
Conversation
One concern is that the test case takes a significant amount of runtime, as shown below:
I think we could optimize here
|
# Extract arguments from full_like | ||
input_tensor = node.args[0] | ||
fill_value = node.args[1] | ||
shape = list(input_tensor.meta["tensor_meta"].shape) |
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.
Can you use "val" key instead of "tensor_meta" ? If "val" isn't available, then use tensor_meta
Do you mean the static case which uses np.full takes more time or the dynamic one ? For the static, I'm not sure what control we have for optimization. Also, there would be variation b/w debug and release build. So, you might want to try the release build for perf measurement. |
…sorRT into converter_full_like_lowering
Description
aten.full_like
withaten.full
.aten.scatter_add
, replacedtorch.zeros_like
withtorch.zeros
.expected_ops_param
for theaten.scatter_add
test case.py/torch_tensorrt/dynamo/lowering/_decompositions.py
file.Type of change
Please delete options that are not relevant and/or add your own.
Checklist: