revise space

This commit is contained in:
layerdiffusion
2024-08-20 21:27:16 -07:00
parent 1096c708cc
commit 25e97a8895

View File

@@ -179,6 +179,7 @@ def automatically_move_to_gpu_when_forward(m: torch.nn.Module, target_model: tor
m.forge_space_hooked_names = []
if method_name in m.forge_space_hooked_names:
print(f'Already hooked {type(m).__name__}.{method_name}')
return
print(f'Automatic hook: {type(m).__name__}.{method_name}')