MCPcopy Create free account
hub / github.com/Lizhuoling/UniMODE / forward

Method forward

model/util/position_encoding.py:141–161  ·  view source on GitHub ↗

Forward function for `LearnedPositionalEncoding`. Args: mask (Tensor): ByteTensor mask. Non-zero values representing ignored positions, while zero values means valid positions for this image. Shape [bs, h, w]. Returns: pos (Tens

(self, mask)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected