2022-01-13 08:47:17 +00:00
|
|
|
// modified from https://github.com/NVIDIA/apex/blob/master/csrc/compat.h
|
2021-12-21 04:19:52 +00:00
|
|
|
#ifndef TORCH_CHECK
|
|
|
|
#define TORCH_CHECK AT_CHECK
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef VERSION_GE_1_3
|
|
|
|
#define DATA_PTR data_ptr
|
|
|
|
#else
|
|
|
|
#define DATA_PTR data
|
|
|
|
#endif
|