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

Function cond

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

Source from the content-addressed store, hash-verified

373 facts = tf.expand_dims(facts, 1)
374
375 def cond(batch, output, i):
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, :],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected