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

Method build_model

language/mentionmemory/tasks/base_task.py:37–40  ·  view source on GitHub ↗

Builds model by instantiating flax module associated with task.

(cls,
                  model_config: ml_collections.FrozenConfigDict)

Source from the content-addressed store, hash-verified

35
36 @classmethod
37 def build_model(cls,
38 model_config: ml_collections.FrozenConfigDict) -> nn.Module:
39 """Builds model by instantiating flax module associated with task."""
40 return cls.model_class(**model_config)
41
42 @classmethod
43 def make_loss_fn(

Callers 15

generateFunction · 0.45
test_model_shapeMethod · 0.45
trainFunction · 0.45
loss_fnMethod · 0.45
run_modelMethod · 0.45
loss_fnMethod · 0.45
test_output_expectedMethod · 0.45
loss_fnMethod · 0.45
test_prediction_fnMethod · 0.45
loss_fnMethod · 0.45
loss_fnMethod · 0.45

Calls

no outgoing calls

Tested by 12

test_model_shapeMethod · 0.36
run_modelMethod · 0.36
test_output_expectedMethod · 0.36
test_prediction_fnMethod · 0.36
test_loss_fnMethod · 0.36
test_loss_fnMethod · 0.36
test_loss_fnMethod · 0.36
test_loss_fnMethod · 0.36
setUpMethod · 0.36
run_modelMethod · 0.36
test_loss_fnMethod · 0.36