MCPcopy
hub / github.com/FedML-AI/FedML / info

Function info

python/fedml/api/modules/model.py:247–259  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

245
246
247def info(name):
248 inference_output_url, model_version, model_metadata, model_config = FedMLModelCards.get_instance().query_model(name)
249 if inference_output_url != "":
250 click.echo("Query model {} successfully.".format(name))
251 click.echo("infer url: {}.".format(inference_output_url))
252 click.echo("model version: {}.".format(model_version))
253 click.echo("model metadata: {}.".format(model_metadata))
254 click.echo("model config: {}.".format(model_config))
255 else:
256 if name is None:
257 print("please specifiy the model name")
258 else:
259 click.echo("Failed to query model {}.".format(name))
260
261
262def run(name, data):

Callers

nothing calls this directly

Calls 2

query_modelMethod · 0.80
get_instanceMethod · 0.45

Tested by

no test coverage detected