MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / search_for_embeddings

Function search_for_embeddings

diffsynth/models/utils.py:91–98  ·  view source on GitHub ↗
(state_dict)

Source from the content-addressed store, hash-verified

89
90
91def search_for_embeddings(state_dict):
92 embeddings = []
93 for k in state_dict:
94 if isinstance(state_dict[k], torch.Tensor):
95 embeddings.append(state_dict[k])
96 elif isinstance(state_dict[k], dict):
97 embeddings += search_for_embeddings(state_dict[k])
98 return embeddings
99
100
101def search_parameter(param, state_dict):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected