MCPcopy Create free account
hub / github.com/tdrussell/diffusion-pipe / forward

Method forward

models/cosmos_predict2.py:626–630  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

624
625 @torch.autocast('cuda', dtype=AUTOCAST_DTYPE)
626 def forward(self, inputs):
627 x_B_T_H_W_D, t_embedding_B_T_D, crossattn_emb, rope_emb_L_1_1_D, adaln_lora_B_T_3D, timesteps_B_T = inputs
628 x_B_T_H_W_O = self.final_layer(x_B_T_H_W_D, t_embedding_B_T_D, adaln_lora_B_T_3D=adaln_lora_B_T_3D)
629 net_output_B_C_T_H_W = self.unpatchify(x_B_T_H_W_O)
630 return net_output_B_C_T_H_W

Callers

nothing calls this directly

Calls 1

unpatchifyMethod · 0.45

Tested by

no test coverage detected