Spaces:
Running
Running
Update script.js
Browse files
script.js
CHANGED
@@ -156,7 +156,7 @@ var dojob = function(run_id) {
|
|
156 |
tf.dispose(gru0_hx_);
|
157 |
const att_inp = tf.concat([att_context, input, out_0], 1);
|
158 |
const att_params = tf.add(tf.matMul(att_inp, att_w), att_b);
|
159 |
-
[alpha,beta,kappa] = tf.split(tf.
|
160 |
att_location_ = att_location;
|
161 |
att_location = tf.add(att_location, tf.div(kappa, 25.));
|
162 |
tf.dispose(att_location_)
|
|
|
156 |
tf.dispose(gru0_hx_);
|
157 |
const att_inp = tf.concat([att_context, input, out_0], 1);
|
158 |
const att_params = tf.add(tf.matMul(att_inp, att_w), att_b);
|
159 |
+
[alpha,beta,kappa] = tf.split(tf.log(tf.add(tf.exp(att_params), 1.)), 3, 1);
|
160 |
att_location_ = att_location;
|
161 |
att_location = tf.add(att_location, tf.div(kappa, 25.));
|
162 |
tf.dispose(att_location_)
|