def sample_create_tensorboard_run():
    # Create a client
    client = aiplatform_v1beta1.TensorboardServiceClient()

    # Initialize request argument(s)
    tensorboard_run = aiplatform_v1beta1.TensorboardRun()
    tensorboard_run.display_name = "display_name_value"

    request = aiplatform_v1beta1.CreateTensorboardRunRequest(
        parent="parent_value",
        tensorboard_run=tensorboard_run,
        tensorboard_run_id="tensorboard_run_id_value",
    )

    # Make the request
    response = client.create_tensorboard_run(request=request)

    # Handle the response
    print(response)
Beispiel #2
0
async def sample_batch_create_tensorboard_runs():
    # Create a client
    client = aiplatform_v1beta1.TensorboardServiceAsyncClient()

    # Initialize request argument(s)
    requests = aiplatform_v1beta1.CreateTensorboardRunRequest()
    requests.parent = "parent_value"
    requests.tensorboard_run.display_name = "display_name_value"
    requests.tensorboard_run_id = "tensorboard_run_id_value"

    request = aiplatform_v1beta1.BatchCreateTensorboardRunsRequest(
        parent="parent_value",
        requests=requests,
    )

    # Make the request
    response = await client.batch_create_tensorboard_runs(request=request)

    # Handle the response
    print(response)