Esempio n. 1
0
def agent(ctx, project, entity, count, sweep_id):
    if api.api_key is None:
        termlog("Login to W&B to use the sweep agent feature")
        ctx.invoke(login, no_offline=True)

    wandb.termlog('Starting wandb agent 🕵️')
    wandb_agent.run_agent(sweep_id, entity=entity, project=project, count=count)
Esempio n. 2
0
def agent(ctx, project, entity, count, sweep_id):
    api = _get_cling_api()
    if api.api_key is None:
        wandb.termlog("Login to W&B to use the sweep agent feature")
        ctx.invoke(login, no_offline=True)
        api = _get_cling_api(reset=True)

    wandb.termlog("Starting wandb agent 🕵️")
    wandb_agent.run_agent(sweep_id, entity=entity, project=project, count=count)
Esempio n. 3
0
def agent(sweep_id):
    if sys.platform == 'win32':
        wandb.termerror('Agent is not supported on Windows')
        sys.exit(1)
    click.echo('Starting wandb agent 🕵️')
    wandb_agent.run_agent(sweep_id)
Esempio n. 4
0
def agent(sweep_id):
    click.echo('Starting wandb agent 🕵️')
    wandb_agent.run_agent(sweep_id)