/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/ops/ |
H A D | reduce_all_builder_test.cpp | 68 float *coeffValue = new (std::nothrow) float(0.0f); in SetCoeff() local 69 EXPECT_NE(nullptr, coeffValue); in SetCoeff() 70 coeffTensor->SetBuffer(coeffValue, sizeof(float)); in SetCoeff() 220 int64_t coeffValue = 1; variable 221 coeffTensor->SetBuffer(&coeffValue, sizeof(int64_t)); 293 float coeffValue[2] = {1.0f, 1.0f}; variable 294 coeffTensor->SetBuffer(coeffValue, 2 * sizeof(float)); 465 float coeffValue = 0.0f; variable 475 EXPECT_EQ(returnCoeffValue, coeffValue);
|
H A D | reduce_l2_test.cpp | 68 float *coeffValue = new (std::nothrow) float(0.0f); in SetCoeff() local 69 EXPECT_NE(nullptr, coeffValue); in SetCoeff() 70 coeffTensor->SetBuffer(coeffValue, sizeof(float)); in SetCoeff() 220 int64_t coeffValue = 1; variable 221 coeffTensor->SetBuffer(&coeffValue, sizeof(int64_t)); 293 float coeffValue[2] = {1.0f, 1.0f}; variable 294 coeffTensor->SetBuffer(coeffValue, 2 * sizeof(float)); 465 float coeffValue = 0.0f; variable 475 EXPECT_EQ(returnCoeffValue, coeffValue);
|
H A D | reduce_max_builder_test.cpp | 68 float *coeffValue = new (std::nothrow) float(0.0f); in SetCoeff() local 69 EXPECT_NE(nullptr, coeffValue); in SetCoeff() 70 coeffTensor->SetBuffer(coeffValue, sizeof(float)); in SetCoeff() 220 int64_t coeffValue = 1; variable 221 coeffTensor->SetBuffer(&coeffValue, sizeof(int64_t)); 293 float coeffValue[2] = {1.0f, 1.0f}; variable 294 coeffTensor->SetBuffer(coeffValue, 2 * sizeof(float)); 465 float coeffValue = 0.0f; variable 475 EXPECT_EQ(returnCoeffValue, coeffValue);
|
H A D | reduce_mean_builder_test.cpp | 68 float *coeffValue = new (std::nothrow) float(0.0f); in SetCoeff() local 69 EXPECT_NE(nullptr, coeffValue); in SetCoeff() 70 coeffTensor->SetBuffer(coeffValue, sizeof(float)); in SetCoeff() 220 int64_t coeffValue = 1; variable 221 coeffTensor->SetBuffer(&coeffValue, sizeof(int64_t)); 293 float coeffValue[2] = {1.0f, 1.0f}; variable 294 coeffTensor->SetBuffer(coeffValue, 2 * sizeof(float)); 465 float coeffValue = 0.0f; variable 475 EXPECT_EQ(returnCoeffValue, coeffValue);
|
H A D | reduce_min_builder_test.cpp | 68 float *coeffValue = new (std::nothrow) float(0.0f); in SetCoeff() local 69 EXPECT_NE(nullptr, coeffValue); in SetCoeff() 70 coeffTensor->SetBuffer(coeffValue, sizeof(float)); in SetCoeff() 220 int64_t coeffValue = 1; variable 221 coeffTensor->SetBuffer(&coeffValue, sizeof(int64_t)); 293 float coeffValue[2] = {1.0f, 1.0f}; variable 294 coeffTensor->SetBuffer(coeffValue, 2 * sizeof(float)); 465 float coeffValue = 0.0f; variable 475 EXPECT_EQ(returnCoeffValue, coeffValue);
|
H A D | reduce_prod_builder_test.cpp | 68 float *coeffValue = new (std::nothrow) float(0.0f); in SetCoeff() local 69 EXPECT_NE(nullptr, coeffValue); in SetCoeff() 70 coeffTensor->SetBuffer(coeffValue, sizeof(float)); in SetCoeff() 220 int64_t coeffValue = 1; variable 221 coeffTensor->SetBuffer(&coeffValue, sizeof(int64_t)); 293 float coeffValue[2] = {1.0f, 1.0f}; variable 294 coeffTensor->SetBuffer(coeffValue, 2 * sizeof(float)); 465 float coeffValue = 0.0f; variable 475 EXPECT_EQ(returnCoeffValue, coeffValue);
|
H A D | reduce_sum_builder_test.cpp | 68 float *coeffValue = new (std::nothrow) float(0.0f); in SetCoeff() local 69 EXPECT_NE(nullptr, coeffValue); in SetCoeff() 70 coeffTensor->SetBuffer(coeffValue, sizeof(float)); in SetCoeff() 220 int64_t coeffValue = 1; variable 221 coeffTensor->SetBuffer(&coeffValue, sizeof(int64_t)); 293 float coeffValue[2] = {1.0f, 1.0f}; variable 294 coeffTensor->SetBuffer(coeffValue, 2 * sizeof(float)); 465 float coeffValue = 0.0f; variable 475 EXPECT_EQ(returnCoeffValue, coeffValue);
|