Skip to content

Commit

Permalink
Fix version.cpp for Pytorch 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
tridao committed Jul 26, 2020
1 parent 4450758 commit 0490925
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion csrc/version.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <Python.h>
#include <torch/script.h>
// This has to be library.h instead of script.h otherwise won't work in
// pytorch 1.6. There an error during import about "SourceLocation"
#include <torch/library.h>

#ifdef WITH_CUDA
#include <cuda.h>
Expand Down

0 comments on commit 0490925

Please sign in to comment.