Class GetTensorflowVersions
Inheritance
System.Object
GetTensorflowVersions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Tpu
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetTensorflowVersions
Methods
View SourceInvokeAsync(GetTensorflowVersionsArgs, InvokeOptions)
Get TensorFlow versions available for a project. For more information see the official documentation and API.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var available = Output.Create(Gcp.Tpu.GetTensorflowVersions.InvokeAsync());
}
}
{{% /example %}} {{% /examples %}}
Example Usage: Configure Basic TPU Node with available version
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var available = Output.Create(Gcp.Tpu.GetTensorflowVersions.InvokeAsync());
var tpu = new Gcp.Tpu.Node("tpu", new Gcp.Tpu.NodeArgs
{
Zone = "us-central1-b",
AcceleratorType = "v3-8",
TensorflowVersion = available.Apply(available => available.Versions[0]),
CidrBlock = "10.2.0.0/29",
});
}
}
Declaration
public static Task<GetTensorflowVersionsResult> InvokeAsync(GetTensorflowVersionsArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetTensorflowVersionsArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetTensorflowVersionsResult> |