mega.pytorch icon indicating copy to clipboard operation
mega.pytorch copied to clipboard

error: identifier "AT_CHECK" is undefined

Open liuky74 opened this issue 5 years ago • 2 comments

I had an error during installation: image

I'm not sure where the Macro came from , how to fix it?

Thanks

liuky74 avatar Oct 19 '20 09:10 liuky74

I have solved this problem after switching pytorch to version 1.3. Can the program only run in version 1.3?

liuky74 avatar Oct 19 '20 09:10 liuky74

replace AT_CHECK with TORCH_CHECK

#ifndef AT_CHECK
#define AT_CHECK TORCH_CHECK 
#endif

Dawn-LX avatar Feb 01 '21 07:02 Dawn-LX