forked from btgraham/SparseConvNet-archived
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpatiallySparseBatchInterface.cu
More file actions
25 lines (24 loc) · 1.03 KB
/
SpatiallySparseBatchInterface.cu
File metadata and controls
25 lines (24 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <iostream>
#include "SpatiallySparseBatchInterface.h"
SpatiallySparseBatchInterface::SpatiallySparseBatchInterface() :
featuresPresent(false,0) {
}
void SpatiallySparseBatchInterface::summary() {
std::cout << "---------------------------------------------------\n";
std::cout << "nFeatures" << nFeatures << std::endl;
std::cout << "featuresPresent.size()" << featuresPresent.size() <<std::endl;
std::cout << "spatialSize" << spatialSize << std::endl;
std::cout << "nSpatialSites" << nSpatialSites << std::endl;
std::cout << "sub->features.size()" << sub->features.size() << std::endl;
std::cout << "sub->dfeatures.size()" << sub->dfeatures.size() << std::endl;
std::cout << "grids.size()" << grids.size() << std::endl;
std::cout << "grids[0].mp.size()" << grids[0].mp.size() << std::endl;
std::cout << "---------------------------------------------------\n";
}
void SpatiallySparseBatchInterface::reset() {
featuresPresent.resize(0);
nSpatialSites=0;
grids.resize(0);
rules.resize(0);
backpropErrors=false;
}