Rename dim2d to shape2d

This commit is contained in:
2024-05-27 21:14:51 +02:00
parent 07d505a0e5
commit df47a31f36
22 changed files with 120 additions and 120 deletions

View File

@@ -7,11 +7,11 @@
class AvgPoolingLayerTest : public ::testing::Test {
protected:
dim2d inputSize;
shape2d inputSize;
int nChannels;
dim2d poolingSize;
dim2d stride;
dim2d padding;
shape2d poolingSize;
shape2d stride;
shape2d padding;
std::vector<float> input;
std::vector<float> expected;

View File

@@ -8,7 +8,7 @@
class BatchNormLayerTest : public ::testing::Test {
protected:
dim2d inputSize;
shape2d inputSize;
int nChannels;
std::vector<float> weights;
std::vector<float> biases;

View File

@@ -7,12 +7,12 @@
class Conv2dTest : public ::testing::Test {
protected:
dim2d inputSize;
shape2d inputSize;
int inputChannels;
dim2d kernelSize;
dim2d stride;
shape2d kernelSize;
shape2d stride;
int numFilters;
dim2d paddingSize;
shape2d paddingSize;
CUDANet::Layers::ActivationType activationType;
std::vector<float> input;
std::vector<float> kernels;

View File

@@ -7,11 +7,11 @@
class MaxPoolingLayerTest : public ::testing::Test {
protected:
dim2d inputSize;
shape2d inputSize;
int nChannels;
dim2d poolingSize;
dim2d stride;
dim2d padding;
shape2d poolingSize;
shape2d stride;
shape2d padding;
std::vector<float> input;
std::vector<float> expected;