MCPcopy Create free account
hub / github.com/HiLab-git/SSL4MIS / interleave

Function interleave

code/augmentations/__init__.py:49–58  ·  view source on GitHub ↗

TF code def interleave(x, batch): s = x.get_shape().as_list() return tf.reshape(tf.transpose(tf.reshape(x, [-1, batch] + s[1:]), [1, 0] + list(range(2, 1+len(s)))), [-1] + s[1:])

(x, batch, inverse=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

deinterleaveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected