-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[JIT] remove builtin interpolate functions #34514
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,20 +136,25 @@ bool isFunctionNode(Node* n, | |
// the quantization parameters for output given inputs | ||
std::vector<size_t> getGeneralOpTensorInputIndexes(Node* n) { | ||
std::vector<std::string> single_input_aten_funcs = { | ||
"adaptive_avg_pool2d", | ||
"max_pool2d", | ||
"avg_pool2d", | ||
"flatten", | ||
"max", | ||
"min", | ||
"mean", | ||
// TODO: sort returns a tuple of Tensors, we have | ||
// to extend the API to support that | ||
// "sort", | ||
"__interpolate", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could you add the corresponding ops to this list? I think it might be better to just put this change in the same PR There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know the difference between "single_input_call_funcs" and "single_input_aten_funcs" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where should I be putting the ops? |
||
"__upsample", | ||
"__upsample_bilinear", | ||
"__upsample_nearest", | ||
"max_pool2d", | ||
"avg_pool2d", | ||
"flatten", | ||
"max", | ||
"min", | ||
"mean", | ||
"upsample_nearest1d", | ||
"upsample_nearest2d", | ||
"upsample_nearest3d", | ||
"adaptive_avg_pool1d", | ||
"adaptive_avg_pool2d", | ||
"adaptive_avg_pool3d", | ||
"upsample_linear1d", | ||
"upsample_bilinear2d", | ||
"upsample_trilinear3d", | ||
"upsample_bicubic2d", | ||
// TODO: sort returns a tuple of Tensors, we have | ||
// to extend the API to support that | ||
// "sort", | ||
}; | ||
std::vector<std::string> single_input_call_funcs = { | ||
"adaptive_avg_pool2d", | ||
|
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.
@eellison we need the tests as well, actually I think this might have broken these tests, will sync with you tomorrow.