Home
last modified time | relevance | path

Searched refs:GenerateRandomTensor (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/optimizers/
Dremapper_test.cc158 auto input_t = GenerateRandomTensor<DT_FLOAT>({2, 8, 8, num_channels}); in TEST_F()
159 auto scale_t = GenerateRandomTensor<DT_FLOAT>(channel_shape); in TEST_F()
160 auto offset_t = GenerateRandomTensor<DT_FLOAT>(channel_shape); in TEST_F()
161 auto mean_t = GenerateRandomTensor<DT_FLOAT>(is_training ? empty_shape in TEST_F()
163 auto var_t = GenerateRandomTensor<DT_FLOAT>(is_training ? empty_shape in TEST_F()
270 auto input_t = GenerateRandomTensor<DT_FLOAT>(input_shape); in TEST_F()
271 auto scale_t = GenerateRandomTensor<DT_FLOAT>(channel_shape); in TEST_F()
272 auto offset_t = GenerateRandomTensor<DT_FLOAT>(channel_shape); in TEST_F()
273 auto mean_t = GenerateRandomTensor<DT_FLOAT>(is_training ? empty_shape in TEST_F()
275 auto var_t = GenerateRandomTensor<DT_FLOAT>(is_training ? empty_shape in TEST_F()
[all …]
Dmkl_remapper_test.cc104 auto input_tensor = GenerateRandomTensor<DT_FLOAT>( in FuseConv2DWithBiasAndAddNOrAdd()
106 auto input_addn_tensor = GenerateRandomTensor<DT_FLOAT>( in FuseConv2DWithBiasAndAddNOrAdd()
108 auto filter_tensor = GenerateRandomTensor<DT_FLOAT>( in FuseConv2DWithBiasAndAddNOrAdd()
110 auto bias_tensor = GenerateRandomTensor<DT_FLOAT>( in FuseConv2DWithBiasAndAddNOrAdd()
255 auto input_t = GenerateRandomTensor<DT_FLOAT>({8, 32, 32, 3}); \
256 auto filter_t = GenerateRandomTensor<DT_FLOAT>({1, 1, 3, 1}); \
257 auto bias_t = GenerateRandomTensor<DT_FLOAT>({3}); \
354 auto input_t = GenerateRandomTensor<DT_FLOAT>({2, 8, 8, num_channels}); in TEST_F()
355 auto scale_t = GenerateRandomTensor<DT_FLOAT>(channel_shape); in TEST_F()
356 auto offset_t = GenerateRandomTensor<DT_FLOAT>(channel_shape); in TEST_F()
[all …]
Dconstant_folding_test.cc267 auto in1_t = GenerateRandomTensor<DT_INT32>(TensorShape({4, 6})); in PaddingWithZeroSize()
268 auto in2_t = GenerateRandomTensor<DT_INT32>(TensorShape({2, 2})); in PaddingWithZeroSize()
388 auto x_t = GenerateRandomTensor<DT_FLOAT>(TensorShape({2, 2})); in TEST_F()
389 auto y_t = GenerateRandomTensor<DT_FLOAT>(TensorShape({2, 2})); in TEST_F()
445 auto x_t = GenerateRandomTensor<DT_FLOAT>(TensorShape({2, 2})); in TEST_F()
516 auto x_t = GenerateRandomTensor<DT_FLOAT>(TensorShape({2, 2})); in TEST_F()
592 auto x_mat_t = GenerateRandomTensor<DT_FLOAT>(TensorShape({2, 2})); in TEST_F()
593 auto x_vec_t = GenerateRandomTensor<DT_FLOAT>(TensorShape({2})); in TEST_F()
965 auto a_t = GenerateRandomTensor<DT_FLOAT>(TensorShape({3, 2})); in TEST_F()
966 auto b_t = GenerateRandomTensor<DT_FLOAT>(TensorShape({2, 3})); in TEST_F()
[all …]
Darithmetic_optimizer_test.cc856 auto x_t = GenerateRandomTensor<DT_FLOAT>(TensorShape({3, 3, 28, 28})); in TEST_F()
895 auto x_t = GenerateRandomTensor<DT_FLOAT>(TensorShape({3, 3, 28, 28})); in TEST_F()
924 auto x_t = GenerateRandomTensor<DT_FLOAT>(TensorShape({4, 3, 28, 28})); in TEST_F()
956 auto x_t = GenerateRandomTensor<DT_FLOAT>(TensorShape({4, 3, 28, 28})); in TEST_F()
988 auto x_t = GenerateRandomTensor<DT_FLOAT>(TensorShape({8, 3, 28, 28})); in TEST_F()
1046 auto x_t = GenerateRandomTensor<DT_INT8>(TensorShape({8, 3, 28, 28, 4})); in TEST_F()
1103 auto input_t = GenerateRandomTensor<DT_UINT8>(TensorShape({8, 28, 28, 3})); in TEST_F()
1150 auto input_t = GenerateRandomTensor<DT_UINT8>(TensorShape({8, 28, 28, 3})); in TEST_F()
1246 auto input_t = GenerateRandomTensor<DT_UINT8>(TensorShape({8, 28, 28, 3})); in TEST_F()
1423 auto x_t = GenerateRandomTensor<DT_FLOAT>(TensorShape({8, 12, 28, 28})); in TEST_F()
[all …]
Dmodel_pruner_test.cc302 auto v_in_t = GenerateRandomTensor<DT_FLOAT>(TensorShape({3})); in TEST_F()
351 auto a_t = GenerateRandomTensor<DT_INT64>(TensorShape({})); in TEST_F()
Dgeneric_layout_optimizer_test.cc666 Tensor x = GenerateRandomTensor<DT_FLOAT>({2, 6, 6, 8}); in TEST_F()
Dlayout_optimizer_test.cc254 Tensor filter_data = GenerateRandomTensor<DT_FLOAT>(filter_shape); in TEST_F()
/external/tensorflow/tensorflow/lite/testing/
Dgenerate_testspec_test.cc26 TEST(GenerateRandomTensor, FloatValue) { in TEST() argument
36 const auto& data = GenerateRandomTensor<float>({1, 3, 4}, random_func); in TEST()
Dgenerate_testspec.h59 std::vector<T> GenerateRandomTensor(const std::vector<int>& shape, in GenerateRandomTensor() function
Dgenerate_testspec.cc35 GenerateRandomTensor<T>(shape, [&]() { return distribution(*engine); }); in GenerateCsv()
/external/tensorflow/tensorflow/lite/testing/kernel_test/
Dinput_generator.cc32 std::vector<T> GenerateRandomTensor(TfLiteIntArray* dims, in GenerateRandomTensor() function
57 std::vector<T> data = GenerateRandomTensor(dims, random_t); in GenerateUniform()
80 std::vector<T> data = GenerateRandomTensor(dims, random_t); in GenerateGaussian()
/external/tensorflow/tensorflow/core/grappler/utils/
Dgrappler_test.h89 Tensor GenerateRandomTensor(const TensorShape& shape) const { in GenerateRandomTensor() function