Update model_patcher.py

This commit is contained in:
Chenlei Hu 2025-01-06 19:08:50 -05:00 committed by GitHub
parent a605201278
commit fb281b3c52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -415,7 +415,6 @@ class ModelPatcher:
Example:
patcher = ModelPatcher()
weight = patcher.get_model_object("layer1.conv.weight")
# Equivalent to: patcher.model.layer1.conv.weight
"""
if name in self.object_patches:
return self.object_patches[name]