MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / prop_up

Method prop_up

examples/machine_learning/rbm.cpp:61–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 , v_bias(constant(0, 1, v_size)) {}
60
61 array prop_up(const array &v) {
62 array h_bias_tile = tile(h_bias, v.dims(0));
63 return sigmoid(h_bias_tile + matmulNT(v, weights));
64 }
65
66 array prop_down(const array &h) {
67 array v_bias_tile = tile(v_bias, h.dims(0));

Callers

nothing calls this directly

Calls 4

matmulNTFunction · 0.85
tileFunction · 0.50
sigmoidFunction · 0.50
dimsMethod · 0.45

Tested by

no test coverage detected