MCPcopy Create free account
hub / github.com/XuezheMax/flowseq / unsqueeze

Function unsqueeze

flownmt/utils.py:104–122  ·  view source on GitHub ↗

Args: x: Tensor input tensor [batch, length, features] factor: int unsqueeze factor (default 2) Returns: Tensor squeezed tensor [batch, length * 2, features // 2]

(x: torch.Tensor, factor: int = 2)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

forwardMethod · 0.90
backwardMethod · 0.90
initMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected