MCPcopy
hub / github.com/huggingface/diffusers / float

Method float

src/diffusers/models/modeling_utils.py:1542–1550  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

1540
1541 # Taken from `transformers`.
1542 def float(self, *args):
1543 # Checks if the model is quantized
1544 if getattr(self, "is_quantized", False):
1545 raise ValueError(
1546 "`.float()` is not supported for quantized model. Please use the model as it is, since the"
1547 " model has already been cast to the correct `dtype`."
1548 )
1549 else:
1550 return super().float(*args)
1551
1552 def compile_repeated_blocks(self, *args, **kwargs):
1553 """

Callers 15

compute_snrFunction · 0.80
pt_to_numpyMethod · 0.80
pt_to_pilFunction · 0.80
postprocess_decodeFunction · 0.80
apply_watermarkMethod · 0.80
prepare_latentsMethod · 0.80
prepare_image_latentsMethod · 0.80
_encode_vae_imageMethod · 0.80
__call__Method · 0.80
__call__Method · 0.80

Calls

no outgoing calls