MCPcopy Create free account
hub / github.com/apache/singa / create_model

Function create_model

examples/hfl/src/mlp.py:67–77  ·  view source on GitHub ↗

Constructs a CNN model. Args: pretrained (bool): If True, returns a pre-trained model. Returns: The created CNN model.

(pretrained=False, **kwargs)

Source from the content-addressed store, hash-verified

65
66
67def create_model(pretrained=False, **kwargs):
68 """Constructs a CNN model.
69 Args:
70 pretrained (bool): If True, returns a pre-trained model.
71
72 Returns:
73 The created CNN model.
74 """
75 model = MLP(**kwargs)
76
77 return model
78
79
80__all__ = ["MLP", "create_model"]

Callers

nothing calls this directly

Calls 1

MLPClass · 0.70

Tested by

no test coverage detected