MCPcopy Create free account
hub / github.com/alibaba/bigcomputing / body

Function body

DIEN/utils.py:378–384  ·  view source on GitHub ↗
(batch, output, i)

Source from the content-addressed store, hash-verified

376 return tf.less(i, tf.shape(batch)[1])
377
378 def body(batch, output, i):
379 self_attention_tmp = din_fcn_attention(batch[:, i, :], batch[:, 0:i+1, :],
380 ATTENTION_SIZE, mask[:, 0:i+1], softmax_stag=1, stag=stag,
381 mode='LIST')
382 self_attention_tmp = tf.reduce_sum(self_attention_tmp, 1)
383 output = output.write(i, self_attention_tmp)
384 return batch, output, i + 1
385
386 output_ta = tf.TensorArray(dtype=tf.float32,
387 size=0,

Callers

nothing calls this directly

Calls 1

din_fcn_attentionFunction · 0.85

Tested by

no test coverage detected