tf.raw_ops.DataFormatVecPermute
Stay organized with collections
Save and categorize content based on your preferences.
Returns the permuted vector/tensor in the destination data format given the
tf.raw_ops.DataFormatVecPermute(
x, src_format='NHWC', dst_format='NCHW', name=None
)
one in the source data format.
Args |
x
|
A Tensor . Must be one of the following types: int32 , int64 .
Vector of size 4 or Tensor of shape (4, 2) in source data format.
|
src_format
|
An optional string . Defaults to "NHWC" .
source data format.
|
dst_format
|
An optional string . Defaults to "NCHW" .
destination data format.
|
name
|
A name for the operation (optional).
|
Returns |
A Tensor . Has the same type as x .
|
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.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.raw_ops.DataFormatVecPermute\n\n\u003cbr /\u003e\n\nReturns the permuted vector/tensor in the destination data format given the\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.DataFormatVecPermute`](/api_docs/python/tf/raw_ops/DataFormatVecPermute)\n\n\u003cbr /\u003e\n\n tf.raw_ops.DataFormatVecPermute(\n x, src_format='NHWC', dst_format='NCHW', name=None\n )\n\none in the source data format.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| `x` | A `Tensor`. Must be one of the following types: `int32`, `int64`. Vector of size 4 or Tensor of shape (4, 2) in source data format. |\n| `src_format` | An optional `string`. Defaults to `\"NHWC\"`. source data format. |\n| `dst_format` | An optional `string`. Defaults to `\"NCHW\"`. destination data format. |\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 `x`. ||\n\n\u003cbr /\u003e"]]