-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Move ArrayRef, Backtrace, Error, SmallVector, optional to ATen/core; … #10092
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
…add CoreAPI Signed-off-by: Edward Z. Yang <[email protected]>
facebook-github-bot
left a comment
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.
ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Signed-off-by: Edward Z. Yang <[email protected]>
facebook-github-bot
left a comment
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.
ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
|
@pytorchbot retest this please |
2 similar comments
|
@pytorchbot retest this please |
|
@pytorchbot retest this please |
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
smessmer
left a comment
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.
Looks good. Btw, phabricator is showing some linter errors. Can you run 'arc lint' and fix them?
| , what_(str(err, " (", source_location, ")\n", get_backtrace(/*frames_to_skip=*/2))) | ||
| {} | ||
|
|
||
| static Warning::handler_t global_warning_handler = &Warning::print_warning; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| # but the user doesn't have to worry about it; (2) requires the user | ||
| # to set the macro themselves... but only if they don't use cmake. | ||
| # | ||
| # So, which is appropriate in our situation? One thing I do want |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
I'll handle nits in a follow up PR. |
…add CoreAPI (#10092) Summary: This also makes Backtrace more portable, by disabling its functionality for mobile builds as well. It also handles Caffe2 static Windows builds by introducing a new variable, AT_CORE_STATIC_WINDOWS, which must be set if you're building ATen on Windows as part of a static library. Signed-off-by: Edward Z. Yang <[email protected]> Pull Request resolved: pytorch/pytorch#10092 Reviewed By: gchanan, smessmer Differential Revision: D9094393 Pulled By: ezyang fbshipit-source-id: 93281f9302bd378605a26589ae308faf1dac7df4
…add CoreAPI (pytorch#10092) Summary: This also makes Backtrace more portable, by disabling its functionality for mobile builds as well. It also handles Caffe2 static Windows builds by introducing a new variable, AT_CORE_STATIC_WINDOWS, which must be set if you're building ATen on Windows as part of a static library. Signed-off-by: Edward Z. Yang <[email protected]> Pull Request resolved: pytorch#10092 Reviewed By: gchanan, smessmer Differential Revision: D9094393 Pulled By: ezyang fbshipit-source-id: 93281f9302bd378605a26589ae308faf1dac7df4
…add CoreAPI
Signed-off-by: Edward Z. Yang [email protected]