Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 26bba57

Browse files
authored
Remove version dependent macros & extension specific arch flags except fmha (#1918)
1 parent 4bdecd0 commit 26bba57

3 files changed

Lines changed: 83 additions & 167 deletions

File tree

apex/contrib/csrc/groupbn/interface.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
#include <ATen/ArrayRef.h>
88
#include <ATen/ScalarType.h>
99
#include "ATen/Scalar.h"
10-
#ifndef VERSION_GE_1_1
11-
#include "ATen/Type.h"
12-
#endif
1310
#include "ATen/Tensor.h"
1411
#include "ATen/Storage.h"
1512
#include "ATen/Generator.h"

csrc/compat.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
// TODO: Remove this file, replace capital DATA_PTR with data_ptr in code base
12
#ifndef TORCH_CHECK
23
#define TORCH_CHECK AT_CHECK
34
#endif
45

5-
#ifdef VERSION_GE_1_3
66
#define DATA_PTR data_ptr
7-
#else
8-
#define DATA_PTR data
9-
#endif

0 commit comments

Comments
 (0)