MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / _encode

Method _encode

deepspeed/model_implementations/diffusers/vae.py:77–78  ·  view source on GitHub ↗
(self, x, return_dict=True)

Source from the content-addressed store, hash-verified

75 return self.static_encoder_output
76
77 def _encode(self, x, return_dict=True):
78 return self.vae.encode(x, return_dict=return_dict)
79
80 def _create_cuda_graph_encoder(self, *inputs, **kwargs):
81 # warmup to create the workspace and cublas handle

Callers 2

encodeMethod · 0.95

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected