Home
last modified time | relevance | path

Searched refs:weights_data (Results 1 – 25 of 44) sorted by relevance

12

/dports/math/igraph/igraph-0.9.5/examples/simple/
H A Ddijkstra.c55 igraph_real_t weights_data[] = { 0, 2, 1, 0, 5, 2, 1, 1, 0, 2, 2, 8, 1, 1, 3, 1, 1, 4, 2, 1 }; in main() local
67 igraph_vector_view(&weights, weights_data, in main()
68 sizeof(weights_data) / sizeof(igraph_real_t)); in main()
/dports/misc/mxnet/incubator-mxnet-1.9.0/3rdparty/mkldnn/examples/primitives/
H A Dprelu.cpp67 std::vector<float> weights_data(product(weights_dims)); in prelu_example() local
77 std::fill(weights_data.begin(), weights_data.end(), 0.3f); in prelu_example()
95 write_to_dnnl_memory(weights_data.data(), user_weights_mem); in prelu_example()
H A Dmatmul.cpp67 std::vector<float> weights_data(product(weights_dims)); in matmul_example() local
76 std::generate(weights_data.begin(), weights_data.end(), []() { in matmul_example()
99 write_to_dnnl_memory(weights_data.data(), weights_mem); in matmul_example()
H A Dinner_product.cpp72 std::vector<float> weights_data(product(weights_dims)); in inner_product_example() local
81 std::generate(weights_data.begin(), weights_data.end(), []() { in inner_product_example()
107 write_to_dnnl_memory(weights_data.data(), user_weights_mem); in inner_product_example()
H A Dconvolution.cpp88 std::vector<float> weights_data(product(weights_dims)); in convolution_example() local
97 std::generate(weights_data.begin(), weights_data.end(), []() { in convolution_example()
126 write_to_dnnl_memory(weights_data.data(), user_weights_mem); in convolution_example()
/dports/math/onednn/oneDNN-2.5.1/examples/primitives/
H A Dprelu.cpp67 std::vector<float> weights_data(product(weights_dims)); in prelu_example() local
77 std::fill(weights_data.begin(), weights_data.end(), 0.3f); in prelu_example()
95 write_to_dnnl_memory(weights_data.data(), user_weights_mem); in prelu_example()
H A Dconvolution.cpp88 std::vector<float> weights_data(product(weights_dims)); in convolution_example() local
97 std::generate(weights_data.begin(), weights_data.end(), []() { in convolution_example()
126 write_to_dnnl_memory(weights_data.data(), user_weights_mem); in convolution_example()
242 std::vector<float> weights_data(product(weights_dims)); in depthwise_convolution_example() local
251 std::generate(weights_data.begin(), weights_data.end(), []() { in depthwise_convolution_example()
280 write_to_dnnl_memory(weights_data.data(), user_weights_mem); in depthwise_convolution_example()
H A Dmatmul.cpp67 std::vector<float> weights_data(product(weights_dims)); in matmul_example() local
76 std::generate(weights_data.begin(), weights_data.end(), []() { in matmul_example()
99 write_to_dnnl_memory(weights_data.data(), weights_mem); in matmul_example()
H A Dinner_product.cpp72 std::vector<float> weights_data(product(weights_dims)); in inner_product_example() local
81 std::generate(weights_data.begin(), weights_data.end(), []() { in inner_product_example()
107 write_to_dnnl_memory(weights_data.data(), user_weights_mem); in inner_product_example()
/dports/misc/mxnet/incubator-mxnet-1.9.0/3rdparty/mkldnn/tests/gtests/
H A Dtest_layer_normalization.cpp319 auto weights_data = use_weights_bias || use_weights in check_lnorm_fwd() local
323 GTEST_EXPECT_NE(weights_data, nullptr); in check_lnorm_fwd()
329 : use_weights_bias ? &weights_data[bias_off] : nullptr; in check_lnorm_fwd()
395 ? weights_data[weights_mdw.off_l(c, true)] in check_lnorm_fwd()
457 auto weights_data = use_weights_bias || use_weights in check_lnorm_bwd() local
461 GTEST_EXPECT_NE(weights_data, nullptr); in check_lnorm_bwd()
560 ? weights_data[weights_mdw.off_l(c)] in check_lnorm_bwd()
574 ? weights_data[weights_mdw.off_l(c)] in check_lnorm_bwd()
H A Dtest_batch_normalization_common.hpp423 auto weights_data = (use_weights || use_weights_bias) in check_bnorm_fwd() local
430 : use_weights_bias ? &weights_data[bias_off] : nullptr; in check_bnorm_fwd()
499 ? weights_data[weights_mdw.off_l(c, true)] in check_bnorm_fwd()
564 auto weights_data = (use_weights || use_weights_bias) in check_bnorm_bwd() local
618 ? weights_data[weights_mdw.off_l(c, true)] in check_bnorm_bwd()
H A Dtest_inner_product_backward_data.cpp36 auto weights_data = map_memory<data_t>(weights); in compute_ref_inner_product_bwd_data() local
66 * weights_data[weights_mdw.off_l(widx, true)]; in compute_ref_inner_product_bwd_data()
77 * weights_data[weights_mdw.off_l(widx, true)]; in compute_ref_inner_product_bwd_data()
H A Dtest_convolution_backward_data_common.hpp32 auto weights_data = map_memory<data_t_wei>(weights); in compute_ref_conv_bwd_data() local
76 * weights_data[weights_mdw.off_l( in compute_ref_conv_bwd_data()
H A Dtest_convolution_forward_common.hpp39 auto weights_data = map_memory<data_t_wei>(weights); in compute_ref_conv_fwd() local
74 * weights_data[weights_mdw.off_l( in compute_ref_conv_fwd()
H A Dtest_convolution_eltwise_forward_common.hpp33 auto weights_data = map_memory<data_t_wei>(weights); in compute_ref_conv_eltwise_fwd() local
77 * weights_data[weights_mdw.off_l(widx, true)]; in compute_ref_conv_eltwise_fwd()
H A Dtest_inner_product_forward.cpp36 auto weights_data = map_memory<data_t>(weights); in compute_ref_inner_product_fwd() local
67 * weights_data[weights_mdw.off_l(widx, true)]; in compute_ref_inner_product_fwd()
H A Dtest_deconvolution.cpp88 auto weights_data = map_memory<data_t>(weights); in transpose_wei() local
106 = weights_data[weights_mdw.off_l(widx, true)]; in transpose_wei()
/dports/math/onednn/oneDNN-2.5.1/tests/gtests/
H A Dtest_layer_normalization.cpp319 auto weights_data = use_weights_bias || use_weights in check_lnorm_fwd() local
323 GTEST_EXPECT_NE(weights_data, nullptr); in check_lnorm_fwd()
329 : use_weights_bias ? &weights_data[bias_off] : nullptr; in check_lnorm_fwd()
395 ? weights_data[weights_mdw.off_l(c, true)] in check_lnorm_fwd()
457 auto weights_data = use_weights_bias || use_weights in check_lnorm_bwd() local
461 GTEST_EXPECT_NE(weights_data, nullptr); in check_lnorm_bwd()
560 ? weights_data[weights_mdw.off_l(c)] in check_lnorm_bwd()
574 ? weights_data[weights_mdw.off_l(c)] in check_lnorm_bwd()
H A Dtest_batch_normalization_common.hpp423 auto weights_data = (use_weights || use_weights_bias) in check_bnorm_fwd() local
430 : use_weights_bias ? &weights_data[bias_off] : nullptr; in check_bnorm_fwd()
499 ? weights_data[weights_mdw.off_l(c, true)] in check_bnorm_fwd()
564 auto weights_data = (use_weights || use_weights_bias) in check_bnorm_bwd() local
618 ? weights_data[weights_mdw.off_l(c, true)] in check_bnorm_bwd()
H A Dtest_inner_product_backward_data.cpp36 auto weights_data = map_memory<data_t>(weights); in compute_ref_inner_product_bwd_data() local
66 * weights_data[weights_mdw.off_l(widx, true)]; in compute_ref_inner_product_bwd_data()
77 * weights_data[weights_mdw.off_l(widx, true)]; in compute_ref_inner_product_bwd_data()
H A Dtest_convolution_backward_data_common.hpp32 auto weights_data = map_memory<data_t_wei>(weights); in compute_ref_conv_bwd_data() local
76 * weights_data[weights_mdw.off_l( in compute_ref_conv_bwd_data()
H A Dtest_convolution_forward_common.hpp39 auto weights_data = map_memory<data_t_wei>(weights); in compute_ref_conv_fwd() local
74 * weights_data[weights_mdw.off_l( in compute_ref_conv_fwd()
H A Dtest_convolution_eltwise_forward_common.hpp33 auto weights_data = map_memory<data_t_wei>(weights); in compute_ref_conv_eltwise_fwd() local
77 * weights_data[weights_mdw.off_l(widx, true)]; in compute_ref_conv_eltwise_fwd()
H A Dtest_inner_product_forward.cpp36 auto weights_data = map_memory<data_t>(weights); in compute_ref_inner_product_fwd() local
67 * weights_data[weights_mdw.off_l(widx, true)]; in compute_ref_inner_product_fwd()
/dports/math/ideep/ideep-2.0.0-119-gb57539e/tests/
H A Dtest_ideep_common.hpp139 data_t_wei *weights_data = (data_t_wei *)weights.get_data_handle(); in compute_ref_conv_fwd() local
172 * weights_data[map_index(weights_d, widx)]; in compute_ref_conv_fwd()
215 data_t_wei *weights_data = (data_t_wei *)weights.get_data_handle(); in compute_ref_conv_bwd_data() local
257 * weights_data[map_index(weights_d, widx)]); in compute_ref_conv_bwd_data()
1094 data_t *weights_data = (data_t *)weights.get_data_handle(); in compute_ref_inner_product_fwd() local
1118 * weights_data[map_index(weights_d, widx)]; in compute_ref_inner_product_fwd()
1131 data_t *weights_data = (data_t *)weights.get_data_handle(); in compute_ref_inner_product_bwd_data() local
1155 * weights_data[map_index(weights_d, widx)]; in compute_ref_inner_product_bwd_data()
1167 * weights_data[map_index(weights_d, widx)]; in compute_ref_inner_product_bwd_data()

12