MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / fill_static_values

Method fill_static_values

tests/AssetsLibrary.h:645–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643
644template <typename T, typename DataType>
645void AssetsLibrary::fill_static_values(T &&tensor, const std::vector<DataType> &values) const
646{
647 auto it = values.begin();
648 GeneratorFunctionType<DataType> get_next_value = [&]()
649 {
650 const DataType value = *it;
651 ++it;
652
653 if (it == values.end())
654 {
655 it = values.begin();
656 }
657
658 return value;
659 };
660
661 fill_with_generator(tensor, get_next_value);
662}
663
664template <typename D>
665void AssetsLibrary::fill(RawTensor &raw, D &&distribution, std::random_device::result_type seed_offset) const

Callers 13

TEST_CASEFunction · 0.80
TEST_CASEFunction · 0.80
TEST_CASEFunction · 0.80
TEST_CASEFunction · 0.80
TEST_CASEFunction · 0.80
fillMethod · 0.80
fillMethod · 0.80
fillMethod · 0.80
TEST_CASEFunction · 0.80
test_specific_case_int8Function · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 2

test_specific_case_int8Function · 0.64