mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-23 15:50:39 +08:00
pytorch TORCH_CHECK_ARG version compatibility
Summary: Restore compatibility with old C++ after recent torch change. https://github.com/facebookresearch/pytorch3d/issues/995 Reviewed By: patricklabatut Differential Revision: D33093174 fbshipit-source-id: 841202fb875d601db265e93dcf9cfa4249d02b25
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9eec430f1c
commit
069c9fd759
@@ -17,6 +17,12 @@
|
||||
#include <c10/cuda/CUDAGuard.h>
|
||||
#endif
|
||||
|
||||
#ifndef TORCH_CHECK_ARG
|
||||
// torch <= 1.10
|
||||
#define TORCH_CHECK_ARG(cond, argN, ...) \
|
||||
TORCH_CHECK(cond, "invalid argument ", argN, ": ", __VA_ARGS__)
|
||||
#endif
|
||||
|
||||
namespace PRE = ::pulsar::Renderer;
|
||||
|
||||
namespace pulsar {
|
||||
|
||||
Reference in New Issue
Block a user