ntt123 commited on
Commit
68aa879
1 Parent(s): 9bb9077

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +1 -1
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.log1p(tf.exp(att_params)), 3, 1);
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_)