tpu

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetTensorflowVersionsArgs added in v0.18.6

type GetTensorflowVersionsArgs struct {
	Project interface{}
	Zone    interface{}
}

A collection of arguments for invoking getTensorflowVersions.

type GetTensorflowVersionsResult added in v0.18.6

type GetTensorflowVersionsResult struct {
	Project  interface{}
	Versions interface{}
	Zone     interface{}
	// id is the provider-assigned unique ID for this managed resource.
	Id interface{}
}

A collection of values returned by getTensorflowVersions.

func LookupTensorflowVersions added in v0.18.6

func LookupTensorflowVersions(ctx *pulumi.Context, args *GetTensorflowVersionsArgs) (*GetTensorflowVersionsResult, error)

type Node

type Node struct {
	// contains filtered or unexported fields
}

> This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/r/tpu_node.html.markdown.

func GetNode

func GetNode(ctx *pulumi.Context,
	name string, id pulumi.ID, state *NodeState, opts ...pulumi.ResourceOpt) (*Node, error)

GetNode gets an existing Node resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNode

func NewNode(ctx *pulumi.Context,
	name string, args *NodeArgs, opts ...pulumi.ResourceOpt) (*Node, error)

NewNode registers a new resource with the given unique name, arguments, and options.

func (*Node) AcceleratorType

func (r *Node) AcceleratorType() pulumi.StringOutput

The type of hardware accelerators associated with this node.

func (*Node) CidrBlock

func (r *Node) CidrBlock() pulumi.StringOutput

The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block.

func (*Node) Description

func (r *Node) Description() pulumi.StringOutput

The user-supplied description of the TPU. Maximum of 512 characters.

func (*Node) ID

func (r *Node) ID() pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*Node) Labels

func (r *Node) Labels() pulumi.MapOutput

Resource labels to represent user provided metadata.

func (*Node) Name

func (r *Node) Name() pulumi.StringOutput

The immutable name of the TPU.

func (*Node) Network

func (r *Node) Network() pulumi.StringOutput

The name of a network to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, "default" will be used.

func (*Node) NetworkEndpoints

func (r *Node) NetworkEndpoints() pulumi.ArrayOutput

The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node first reach out to the first (index 0) entry.

func (*Node) Project

func (r *Node) Project() pulumi.StringOutput

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

func (*Node) SchedulingConfig

func (r *Node) SchedulingConfig() pulumi.Output

Sets the scheduling options for this TPU instance.

func (*Node) ServiceAccount

func (r *Node) ServiceAccount() pulumi.StringOutput

The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.

func (*Node) TensorflowVersion

func (r *Node) TensorflowVersion() pulumi.StringOutput

The version of Tensorflow running in the Node.

func (*Node) URN

func (r *Node) URN() pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

func (*Node) Zone

func (r *Node) Zone() pulumi.StringOutput

The GCP location for the TPU.

type NodeArgs

type NodeArgs struct {
	// The type of hardware accelerators associated with this node.
	AcceleratorType interface{}
	// The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the
	// Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only
	// consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node,
	// the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with
	// another network that is using that CIDR block.
	CidrBlock interface{}
	// The user-supplied description of the TPU. Maximum of 512 characters.
	Description interface{}
	// Resource labels to represent user provided metadata.
	Labels interface{}
	// The immutable name of the TPU.
	Name interface{}
	// The name of a network to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on
	// which this API has been activated. If none is provided, "default" will be used.
	Network interface{}
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project interface{}
	// Sets the scheduling options for this TPU instance.
	SchedulingConfig interface{}
	// The version of Tensorflow running in the Node.
	TensorflowVersion interface{}
	// The GCP location for the TPU.
	Zone interface{}
}

The set of arguments for constructing a Node resource.

type NodeState

type NodeState struct {
	// The type of hardware accelerators associated with this node.
	AcceleratorType interface{}
	// The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the
	// Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only
	// consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node,
	// the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with
	// another network that is using that CIDR block.
	CidrBlock interface{}
	// The user-supplied description of the TPU. Maximum of 512 characters.
	Description interface{}
	// Resource labels to represent user provided metadata.
	Labels interface{}
	// The immutable name of the TPU.
	Name interface{}
	// The name of a network to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on
	// which this API has been activated. If none is provided, "default" will be used.
	Network interface{}
	// The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the
	// node first reach out to the first (index 0) entry.
	NetworkEndpoints interface{}
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project interface{}
	// Sets the scheduling options for this TPU instance.
	SchedulingConfig interface{}
	// The service account used to run the tensor flow services within the node. To share resources, including Google Cloud
	// Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
	ServiceAccount interface{}
	// The version of Tensorflow running in the Node.
	TensorflowVersion interface{}
	// The GCP location for the TPU.
	Zone interface{}
}

Input properties used for looking up and filtering Node resources.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL