MCPcopy Create free account
hub / github.com/Lightricks/ComfyUI-LTXVideo / _locate_model_within_model

Function _locate_model_within_model

gemma_encoder.py:550–557  ·  view source on GitHub ↗
(super_model, model_name)

Source from the content-addressed store, hash-verified

548
549
550def _locate_model_within_model(super_model, model_name):
551 class_name = MODEL_MAPPING_NAMES.get(model_name, None)
552 if class_name is None:
553 return None
554 for module in super_model.modules():
555 if module.__class__.__name__ == class_name:
556 return module
557 return None
558
559
560def _locate_unique_parameter_owner_by_leaf(

Callers 1

Calls 1

getMethod · 0.80

Tested by

no test coverage detected