Skip to content

Commit

Permalink
fixing issue #23
Browse files Browse the repository at this point in the history
  • Loading branch information
ztzhang committed Jul 25, 2019
1 parent 7bb6d28 commit 62fc39b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions toolbox/calc_prob/build.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import os
import sys
import torch
from torch.utils.cpp_extension import CppExtension, BuildExtension
from torch.utils.ffi import create_extension


this_file = os.path.dirname(os.path.realpath(__file__))
print(this_file)
Expand Down Expand Up @@ -32,12 +33,12 @@


if __name__ == '__main__':
ext = CppExtension(
ext = create_extension(
'calc_prob._ext.calc_prob_lib',
package=False,
**ffi_params)
#from setuptools import setup
# setup()
BuildExtension(ext)
ext.build()

# ffi.build()

0 comments on commit 62fc39b

Please sign in to comment.