MCPcopy Create free account
hub / github.com/Raibows/MLinRust / weight_init

Method weight_init

src/model/nn/mod.rs:75–80  ·  view source on GitHub ↗

init the weights with random number from \[0, 1.0\] seed: default is set to 0

(&mut self, seed: Option<usize>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

test_nn_forward_backwardFunction · 0.80
mainFunction · 0.80

Calls 3

iter_mutMethod · 0.80
gen_f32Method · 0.80
weight_mut_borrowMethod · 0.45

Tested by 1

test_nn_forward_backwardFunction · 0.64