C++ changes toward libtorch and libcaffe2 unification (#19554)

Summary:
* adds TORCH_API and AT_CUDA_API in places
* refactor code generation Python logic to separate
  caffe2/torch outputs
* fix hip and asan
* remove profiler_cuda from hip
* fix gcc warnings for enums
* Fix PythonOp::Kind
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19554

Differential Revision: D15082727

Pulled By: kostmo

fbshipit-source-id: 83a8a99717f025ab44b29608848928d76b3147a4
This commit is contained in:
Karl Ostmo
2019-04-26 01:26:49 -07:00
committed by Facebook Github Bot
parent 9d180e602f
commit 8f0603b128
59 changed files with 309 additions and 231 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -xe
##############################################################################
# Example command to build the iOS target.
##############################################################################
@ -7,8 +7,6 @@
# using ios-cmake. This is very similar to the android-cmake - see
# build_android.sh for more details.
set -e
CAFFE2_ROOT="$( cd "$(dirname "$0")"/.. ; pwd -P)"
# Build protobuf from third_party so we have a host protoc binary.