MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / decode

Method decode

deepspeed/model_implementations/diffusers/vae.py:55–64  ·  view source on GitHub ↗
(self, *inputs, **kwargs)

Source from the content-addressed store, hash-verified

53 self.decoder_cuda_graph_created = True
54
55 def decode(self, *inputs, **kwargs):
56 if self.enable_cuda_graph:
57 if self.decoder_cuda_graph_created:
58 outputs = self._graph_replay_decoder(*inputs, **kwargs)
59 else:
60 self._create_cuda_graph_decoder(*inputs, **kwargs)
61 outputs = self._graph_replay_decoder(*inputs, **kwargs)
62 return outputs
63 else:
64 return self._decode(*inputs, **kwargs)
65
66 def _graph_replay_encoder(self, *inputs, **kwargs):
67 for i in range(len(inputs)):

Callers 11

_backup_cpuinfoMethod · 0.45
get_numa_coresFunction · 0.45
run_experimentFunction · 0.45
_decodeMethod · 0.45
backend_existsMethod · 0.45
encode_world_infoFunction · 0.45
mainFunction · 0.45
__init__Method · 0.45
forwardMethod · 0.45
mpi_discoveryFunction · 0.45
_set_master_addr_portMethod · 0.45

Calls 3

_graph_replay_decoderMethod · 0.95
_decodeMethod · 0.95

Tested by

no test coverage detected