| 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)); |