Move ArrayRef, Backtrace, Error, SmallVector, optional to ATen/core; …#10092
Move ArrayRef, Backtrace, Error, SmallVector, optional to ATen/core; …#10092ezyang wants to merge 8 commits intopytorch:masterfrom
Conversation
…add CoreAPI Signed-off-by: Edward Z. Yang <ezyang@fb.com>
facebook-github-bot
left a comment
There was a problem hiding this comment.
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 <ezyang@fb.com>
facebook-github-bot
left a comment
There was a problem hiding this comment.
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 <ezyang@fb.com>
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
|
@pytorchbot retest this please |
2 similar comments
|
@pytorchbot retest this please |
|
@pytorchbot retest this please |
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
smessmer
left a comment
There was a problem hiding this comment.
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 <ezyang@fb.com> 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 <ezyang@fb.com> 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 ezyang@fb.com