MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / fill_input_data

Function fill_input_data

tests/test_metal_conv_transpose_2d.cpp:100–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100static void fill_input_data(const case_desc & tc, std::vector<float> & input) {
101 for (size_t i = 0; i < input.size(); ++i) {
102 input[i] = gen_value(i, tc.seed ^ 0x13579bdu, 1.0f / 256.0f);
103 }
104}
105
106static void fill_weight_data(const case_desc & tc, std::vector<uint16_t> & weight_f16, std::vector<float> & weight_f32) {
107 for (size_t i = 0; i < weight_f16.size(); ++i) {

Callers 1

mainFunction · 0.85

Calls 1

gen_valueFunction · 0.85

Tested by

no test coverage detected