MCPcopy
hub / github.com/deepspeedai/DeepSpeed / decode

Method decode

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

Source from the content-addressed store, hash-verified

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

Callers 15

setup.pyFile · 0.80
check-torchdist.pyFile · 0.80
check-torchcuda.pyFile · 0.80
check-license.pyFile · 0.80
set_accelerator_visibleFunction · 0.80
test_user_argsFunction · 0.80
test_bash_string_argsFunction · 0.80
get_numa_coresFunction · 0.80
run_experimentFunction · 0.80
_decodeMethod · 0.80
backend_existsMethod · 0.80

Calls 3

_graph_replay_decoderMethod · 0.95
_decodeMethod · 0.95

Tested by 2

test_user_argsFunction · 0.64
test_bash_string_argsFunction · 0.64