!2451 [Refactor]remove BUILD_LIBTORCH compiler options from the header file of libtorch_npu.

Merge pull request !2451 from huangyunlong/feature_libtorch
This commit is contained in:
i-robot
2023-03-03 03:02:41 +00:00
committed by Gitee
9 changed files with 83 additions and 57 deletions
@@ -56,6 +56,7 @@
#include "torch_npu/csrc/aten/NPUNativeFunctions.h"
#include "torch_npu/csrc/utils/LazyInit.h"
#include "torch_npu/csrc/utils/DeviceParser.h"
using at::Tensor;
using at::Device;