-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add missing tpu_tensorflow_versions doc (#2463)
Merged PR #2463.
- Loading branch information
1 parent
241eacd
commit d03be0b
Showing
5 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
Submodule terraform
updated
from 114d7f to 8730e1
Submodule terraform-beta
updated
from 407f2b to 8a99ed
Submodule terraform-mapper
updated
4 files
+7 −1 | google/compute_autoscaler.go | |
+12 −4 | google/compute_forwarding_rule.go | |
+6 −2 | google/compute_target_instance.go | |
+7 −1 | google/compute_vpn_tunnel.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...party/terraform/website/docs/d/datasource_tpu_tensorflow_versions.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
layout: "google" | ||
page_title: "Google: google_tpu_tensorflow_versions" | ||
sidebar_current: "docs-google-datasource-tpu-tensorflow-versions" | ||
description: |- | ||
Get available TensorFlow versions. | ||
--- | ||
|
||
# google\_tpu\_tensorflow\_versions | ||
|
||
Get TensorFlow versions available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v1/projects.locations.tensorflowVersions). | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "google_tpu_tensorflow_versions" "available" { } | ||
``` | ||
|
||
## Example Usage: Configure Basic TPU Node with available version | ||
|
||
```hcl | ||
data "google_tpu_tensorflow_versions" "available" { } | ||
resource "google_tpu_node" "tpu" { | ||
name = "test-tpu" | ||
zone = "us-central1-b" | ||
accelerator_type = "v3-8" | ||
tensorflow_version = "${data.google_tpu_tensorflow_versions.available.versions[0]}" | ||
cidr_block = "10.2.0.0/29" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `project` - (Optional) The project to list versions for. If it | ||
is not provided, the provider project is used. | ||
|
||
* `zone` - (Optional) The zone to list versions for. If it | ||
is not provided, the provider zone is used. | ||
|
||
## Attributes Reference | ||
|
||
The following attributes are exported: | ||
|
||
* `versions` - The list of TensorFlow versions available for the given project and zone. |