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

Method _encode

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

Source from the content-addressed store, hash-verified

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

Callers 2

encodeMethod · 0.95

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected