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

Method prop_down

examples/machine_learning/rbm.cpp:66–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 array prop_down(const array &h) {
67 array v_bias_tile = tile(v_bias, h.dims(0));
68 return sigmoid(v_bias_tile + matmul(h, weights));
69 }
70
71 void gibbs_vhv(array &vt, array &ht, const array &v, int k = 1) {
72 vt = v;

Callers

nothing calls this directly

Calls 4

tileFunction · 0.50
sigmoidFunction · 0.50
matmulFunction · 0.50
dimsMethod · 0.45

Tested by

no test coverage detected