MCPcopy Create free account
hub / github.com/MengyunQ/MeshHeart / forward

Method forward

model/transformer_vae_batch.py:85–88  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

83 self.register_buffer('pe', pe)
84
85 def forward(self, x):
86 # not used in the final model
87 x = x + self.pe[:x.shape[0], :]
88 return self.dropout(x)
89
90
91# only for ablation / not used in the final model

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected