We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 819fae4 + adb9b25 commit 927f6b6Copy full SHA for 927f6b6
model.cpp
@@ -5,6 +5,11 @@
5
#include "rasterize_gaussians.hpp"
6
#include "tensor_math.hpp"
7
#include "vendor/gsplat/config.h"
8
+#ifdef USE_HIP
9
+#include <c10/hip/HIPCachingAllocator.h>
10
+#else
11
+#include <c10/cuda/CUDACachingAllocator.h>
12
+#endif
13
14
torch::Tensor randomQuatTensor(long long n){
15
torch::Tensor u = torch::rand(n);
@@ -386,6 +391,11 @@ void Model::afterTrain(int step){
386
391
xysGradNorm = torch::Tensor();
387
392
visCounts = torch::Tensor();
388
393
max2DSize = torch::Tensor();
394
395
+ c10::hip::HIPCachingAllocator::emptyCache();
396
397
+ c10::cuda::CUDACachingAllocator::emptyCache();
398
389
399
}
390
400
401
0 commit comments