MCPcopy Create free account
hub / github.com/CDTrans/CDTrans / normalize

Function normalize

loss/triplet_loss.py:5–13  ·  view source on GitHub ↗

Normalizing to unit length along the specified dimension. Args: x: pytorch Variable Returns: x: pytorch Variable, same shape as input

(x, axis=-1)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected