MCPcopy Create free account
hub / github.com/google-research/language / load_weights

Method load_weights

language/mentionmemory/tasks/base_task.py:168–177  ·  view source on GitHub ↗

Load model weights from file. Args: config: experiment config. Returns: Dictionary of model weights.

(cls, config: ml_collections.ConfigDict)

Source from the content-addressed store, hash-verified

166
167 @classmethod
168 def load_weights(cls, config: ml_collections.ConfigDict) -> Dict[str, Any]:
169 """Load model weights from file.
170
171 Args:
172 config: experiment config.
173
174 Returns:
175 Dictionary of model weights.
176 """
177 raise NotImplementedError
178
179 @classmethod
180 def make_output_postprocess_fn(

Callers 4

loadMethod · 0.45
trainMethod · 0.45
trainFunction · 0.45

Calls

no outgoing calls