Skip to content

Commit

Permalink
support torch 2.3 (#94)
Browse files Browse the repository at this point in the history
* support torch 2.3

* bump version to 1.0.1
  • Loading branch information
chengzeyi authored Dec 28, 2023
1 parent 3827f31 commit 80b5793
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sfast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ def new_lru_cache(*args, **kwargs):

# This line will be programatically read/write by setup.py.
# Leave them at the bottom of this file and don't touch them.
__version__ = "1.0.0"
__version__ = "1.0.1"
6 changes: 6 additions & 0 deletions src/sfast/csrc/operators/cublas/cublas_gemm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
#include "CUDABlas.h"
#include "cublas_gemm.h"

#if TORCH_VERSION_MAJOR >= 2 && TORCH_VERSION_MINOR >= 3
namespace c10 {
static auto in_place = std::in_place;
}
#endif

namespace sfast {
namespace operators {

Expand Down
7 changes: 7 additions & 0 deletions src/sfast/csrc/operators/fused_linear.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@
#include <c10/util/MaybeOwned.h>
#include <c10/util/irange.h>
#include <torch/library.h>

#include "fused_linear.h"

#if TORCH_VERSION_MAJOR >= 2 && TORCH_VERSION_MINOR >= 3
namespace c10 {
static auto in_place = std::in_place;
}
#endif

namespace sfast {
namespace operators {

Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1

0 comments on commit 80b5793

Please sign in to comment.