-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[jit] Split out Function into its own file #21539
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
Conversation
Some preparatory movement to prepare for the CU ownership overhaul. Changes are purely mechanical.
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.
struct CAFFE2_API FunctionType : public Type { | ||
static FunctionTypePtr create( | ||
std::shared_ptr<torch::jit::script::Function> function) { | ||
std::shared_ptr<torch::jit::Function> function) { |
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.
flatenning namespaces?
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.
yes, thought I might as well start now :)
torch/csrc/jit/function.h
Outdated
mutable std::unique_ptr<FunctionSchema> schema_; | ||
}; | ||
} // namespace jit | ||
} // namespace torch No newline at end of file |
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.
nitpick: newline
torch/csrc/jit/function.cpp
Outdated
check_single_output(); | ||
} | ||
} // namespace jit | ||
} // namespace torch No newline at end of file |
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.
nitpick: newline
[jit] Split out Function into its own file Some preparatory movement to prepare for the CU ownership overhaul. Changes are purely mechanical. gh-metadata: pytorch pytorch 21539 gh/suo/57/head
[jit] Split out Function into its own file Some preparatory movement to prepare for the CU ownership overhaul. Changes are purely mechanical. gh-metadata: pytorch pytorch 21539 gh/suo/57/head
[jit] Split out Function into its own file Some preparatory movement to prepare for the CU ownership overhaul. Changes are purely mechanical. gh-metadata: pytorch pytorch 21539 gh/suo/57/head
Summary: Pull Request resolved: pytorch/pytorch#21539 ghimport-source-id: f1e4396a0bec6e30d3179f926ec4da68807942f7 Differential Revision: D15741979 Pulled By: suo fbshipit-source-id: 4cd0ed36bcbf8db0b36a101dda6f58975f806889
Stack from ghstack:
Some preparatory movement to prepare for the CU ownership overhaul.
Changes are purely mechanical.
Differential Revision: D15741979