Wraps a backend ModelConfig object.
ModelConfig( client: Optional[wallaroo.client.Client], data: Dict[str, Any], standalone=False)
Base constructor.
Each object requires:
- a GraphQL client - in order to fill its missing members dynamically
- an initial data blob - typically from unserialized JSON, contains at
- least the data for required members (typically the object's primary key) and optionally other data members.
@staticmethod
def
as_standalone( model: wallaroo.model.Model, filter_threshold: Optional[float] = None, runtime: Optional[str] = None, tensor_fields: Optional[List[str]] = None) -> wallaroo.model_config.ModelConfig:
Creates a ModelConfig intended for use in generating standalone configurations