tf.raw_ops.Prelinearize
Stay organized with collections
Save and categorize content based on your preferences.
An op which linearizes one Tensor value to an opaque variant tensor.
tf.raw_ops.Prelinearize(
input, shape=[], layout=[], name=None
)
Args |
input
|
A Tensor . A tensor that will be linearized.
|
shape
|
An optional tf.TensorShape or list of ints . Defaults to [] .
The shape of the tensor.
|
layout
|
An optional list of ints . Defaults to [] .
A vector holding the requested layout in minor-to-major sequence. If a layout
attribute is passed but its values are all -1 the layout will be computed by
the infeed operation.
|
name
|
A name for the operation (optional).
|
Returns |
A Tensor of type variant .
|
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 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tf.raw_ops.Prelinearize\n\n\u003cbr /\u003e\n\nAn op which linearizes one Tensor value to an opaque variant tensor.\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.Prelinearize`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/Prelinearize)\n\n\u003cbr /\u003e\n\n tf.raw_ops.Prelinearize(\n input, shape=[], layout=[], name=None\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `input` | A `Tensor`. A tensor that will be linearized. |\n| `shape` | An optional [`tf.TensorShape`](../../tf/TensorShape) or list of `ints`. Defaults to `[]`. The shape of the tensor. |\n| `layout` | An optional list of `ints`. Defaults to `[]`. A vector holding the requested layout in minor-to-major sequence. If a layout attribute is passed but its values are all -1 the layout will be computed by the infeed operation. |\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` of type `variant`. ||\n\n\u003cbr /\u003e"]]