Lines Matching refs:inputHandle
1028 auto inputHandle = ctx_.allocate(input)->getHandle(); in TEST_F() local
1034 inputHandle.randomize(-1.0f, 1.0f, mod_.getPRNG()); in TEST_F()
1039 for (size_t i = 0; i < inputHandle.size(); ++i) { in TEST_F()
1040 float expected = 1.0 / (1.0 + std::exp(-inputHandle.raw(i))); in TEST_F()
1051 auto inputHandle = ctx_.allocate(input)->getHandle<int8_t>(); in TEST_F() local
1057 for (size_t i = 0; i < inputHandle.size(); ++i) { in TEST_F()
1058 inputHandle.raw(i) = i; in TEST_F()
1064 for (size_t i = 0; i < inputHandle.size(); ++i) { in TEST_F()
1075 auto inputHandle = ctx_.allocate(input)->getHandle(); in TEST_F() local
1081 inputHandle.randomize(-1.0f, 1.0f, mod_.getPRNG()); in TEST_F()
1086 for (size_t i = 0; i < inputHandle.size(); ++i) { in TEST_F()
1087 EXPECT_FLOAT_EQ(outputHandle.raw(i), std::tanh(inputHandle.raw(i))); in TEST_F()
1098 auto inputHandle = ctx_.allocate(input)->getHandle(); in TEST_F() local
1104 inputHandle.randomize(-1.0f, 1.0f, mod_.getPRNG()); in TEST_F()
1109 for (size_t i = 0; i < inputHandle.size(); ++i) { in TEST_F()
1110 float input = inputHandle.raw(i); in TEST_F()
1152 auto inputHandle = ctx_.allocate(input)->getHandle(); in TEST_F() local
1158 inputHandle.randomize(-1.0f, 1.0f, mod_.getPRNG()); in TEST_F()
1163 EXPECT_FLOAT_EQ(outputHandle.at({0, 0, 0}), inputHandle.at({0, 1, 2})); in TEST_F()
1172 auto inputHandle = ctx_.allocate(input)->getHandle(); in TEST_F() local
1178 inputHandle.randomize(-1.0f, 1.0f, mod_.getPRNG()); in TEST_F()
1183 for (size_t i = 0; i < inputHandle.size(); ++i) { in TEST_F()
1184 EXPECT_FLOAT_EQ(outputHandle.raw(i), inputHandle.raw(i)); in TEST_F()
1194 auto inputHandle = ctx_.allocate(input)->getHandle<int8_t>(); in TEST_F() local
1200 inputHandle.clear(42); in TEST_F()
1274 auto inputHandle = ctx_.allocate(input)->getHandle(); in TEST_F() local
1280 inputHandle.randomize(-3.0f, 3.0f, mod_.getPRNG()); in TEST_F()
1285 for (size_t i = 0; i < inputHandle.size(); ++i) { in TEST_F()
1286 float in = inputHandle.raw(i); in TEST_F()
1575 auto inputHandle = iBindings->allocate(inputP)->getHandle(); in TEST_F() local
1576 inputHandle.clear(1); in TEST_F()