tf.raw_ops.TPUReplicatedInput
Stay organized with collections
Save and categorize content based on your preferences.
Connects N inputs to an N-way replicated TPU computation.
tf.raw_ops.TPUReplicatedInput(
inputs, is_mirrored_variable=False, index=-1, is_packed=False, name=None
)
This operation holds a replicated input to a tpu.replicate()
computation subgraph.
Each replicated input has the same shape and type alongside the output.
For example:
%a = "tf.opA"()
%b = "tf.opB"()
%replicated_input = "tf.TPUReplicatedInput"(%a, %b)
%computation = "tf.Computation"(%replicated_input)
The above computation has a replicated input of two replicas.
Args |
inputs
|
A list of at least 1 Tensor objects with the same type.
|
is_mirrored_variable
|
An optional bool . Defaults to False .
|
index
|
An optional int . Defaults to -1 .
|
is_packed
|
An optional bool . Defaults to False .
|
name
|
A name for the operation (optional).
|
Returns |
A Tensor . Has the same type as inputs .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf.raw_ops.TPUReplicatedInput\n\n\u003cbr /\u003e\n\nConnects N inputs to an N-way replicated TPU computation.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.raw_ops.TPUReplicatedInput`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/TPUReplicatedInput)\n\n\u003cbr /\u003e\n\n tf.raw_ops.TPUReplicatedInput(\n inputs, is_mirrored_variable=False, index=-1, is_packed=False, name=None\n )\n\nThis operation holds a replicated input to a `tpu.replicate()` computation subgraph.\nEach replicated input has the same shape and type alongside the output.\n\n#### For example:\n\n %a = \"tf.opA\"()\n %b = \"tf.opB\"()\n %replicated_input = \"tf.TPUReplicatedInput\"(%a, %b)\n %computation = \"tf.Computation\"(%replicated_input)\n\nThe above computation has a replicated input of two replicas.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|------------------------|-----------------------------------------------------------|\n| `inputs` | A list of at least 1 `Tensor` objects with the same type. |\n| `is_mirrored_variable` | An optional `bool`. Defaults to `False`. |\n| `index` | An optional `int`. Defaults to `-1`. |\n| `is_packed` | An optional `bool`. Defaults to `False`. |\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `Tensor`. Has the same type as `inputs`. ||\n\n\u003cbr /\u003e"]]