Home
last modified time | relevance | path

Searched refs:random_func (Results 1 – 7 of 7) sorted by relevance

/external/tensorflow/tensorflow/lite/testing/
Dgenerate_testspec_test.cc28 auto random_func = [&]() { in TEST() local
36 const auto& data = GenerateRandomTensor<float>({1, 3, 4}, random_func); in TEST()
Dgenerate_testspec.h60 RandomFunction random_func) { in GenerateRandomTensor() argument
67 std::generate_n(result.data(), num_elements, random_func); in GenerateRandomTensor()
/external/tflite-support/tensorflow_lite_support/custom_ops/
Dtflite_inference_main.cc33 const std::function<std::string()>& random_func) { in FillRandomString() argument
39 auto str = random_func(); in FillRandomString()
/external/tensorflow/tensorflow/lite/testing/kernel_test/
Dinput_generator.cc33 const std::function<T(int)>& random_func) { in GenerateRandomTensor() argument
41 result[i] = random_func(i); in GenerateRandomTensor()
/external/tensorflow/tensorflow/python/ops/
Dimage_ops_impl.py374 random_func = functools.partial(random_ops.random_uniform, seed=seed)
375 return _random_flip(image, 0, random_func, 'random_flip_up_down')
422 random_func = functools.partial(random_ops.random_uniform, seed=seed)
423 return _random_flip(image, 1, random_func, 'random_flip_left_right')
451 random_func = functools.partial(
454 image, 1, random_func, 'stateless_random_flip_left_right')
482 random_func = functools.partial(
485 image, 0, random_func, 'stateless_random_flip_up_down')
488 def _random_flip(image, flip_index, random_func, scope_name): argument
512 uniform_random = random_func(shape=[], minval=0, maxval=1.0)
[all …]
/external/tensorflow/tensorflow/lite/tools/benchmark/
Dbenchmark_tflite_model.cc100 const std::function<std::string()>& random_func) { in FillRandomString() argument
103 auto str = random_func(); in FillRandomString()
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dmap_test.py983 def random_func(x): function
989 _ = dataset_ops.Dataset.range(10).map(random_func)