mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Add exception handling
This commit is contained in:
11
setup.py
11
setup.py
@ -32,8 +32,9 @@ with open(out_init, 'w') as f:
|
||||
################################################################################
|
||||
# WARNING
|
||||
# This file is generated automatically. Do not edit it, as it will be
|
||||
# regenerated at next build
|
||||
# regenerated during next build
|
||||
################################################################################
|
||||
|
||||
""")
|
||||
f.write(header)
|
||||
f.write(generated)
|
||||
@ -41,9 +42,15 @@ with open(out_init, 'w') as f:
|
||||
################################################################################
|
||||
# Declare the package
|
||||
################################################################################
|
||||
sources = [
|
||||
"torch/csrc/Module.cpp",
|
||||
"torch/csrc/Tensor.cpp",
|
||||
"torch/csrc/Storage.cpp",
|
||||
]
|
||||
C = Extension("torch.C",
|
||||
libraries=['TH'],
|
||||
sources=["torch/csrc/Module.c", "torch/csrc/Tensor.c", "torch/csrc/Storage.c"],
|
||||
sources=sources,
|
||||
language='c++',
|
||||
include_dirs=["torch/csrc"])
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user