tf.raw_ops.StridedSliceAssign
Stay organized with collections
Save and categorize content based on your preferences.
Assign value
to the sliced l-value reference of ref
.
tf.raw_ops.StridedSliceAssign(
ref,
begin,
end,
strides,
value,
begin_mask=0,
end_mask=0,
ellipsis_mask=0,
new_axis_mask=0,
shrink_axis_mask=0,
name=None
)
The values of value
are assigned to the positions in the variable
ref
that are selected by the slice parameters. The slice parameters
begin
, end
, strides
, etc. work exactly as in StridedSlice
.
NOTE this op currently does not support broadcasting and so value
's
shape must be exactly the shape produced by the slice of ref
.
Args |
ref
|
A mutable Tensor .
|
begin
|
A Tensor . Must be one of the following types: int32 , int64 .
|
end
|
A Tensor . Must have the same type as begin .
|
strides
|
A Tensor . Must have the same type as begin .
|
value
|
A Tensor . Must have the same type as ref .
|
begin_mask
|
An optional int . Defaults to 0 .
|
end_mask
|
An optional int . Defaults to 0 .
|
ellipsis_mask
|
An optional int . Defaults to 0 .
|
new_axis_mask
|
An optional int . Defaults to 0 .
|
shrink_axis_mask
|
An optional int . Defaults to 0 .
|
name
|
A name for the operation (optional).
|
Returns |
A mutable Tensor . Has the same type as ref .
|
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.StridedSliceAssign\n\n\u003cbr /\u003e\n\nAssign `value` to the sliced l-value reference of `ref`.\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.StridedSliceAssign`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/StridedSliceAssign)\n\n\u003cbr /\u003e\n\n tf.raw_ops.StridedSliceAssign(\n ref,\n begin,\n end,\n strides,\n value,\n begin_mask=0,\n end_mask=0,\n ellipsis_mask=0,\n new_axis_mask=0,\n shrink_axis_mask=0,\n name=None\n )\n\nThe values of `value` are assigned to the positions in the variable\n`ref` that are selected by the slice parameters. The slice parameters\n`begin`, `end`, `strides`, etc. work exactly as in `StridedSlice`.\n\nNOTE this op currently does not support broadcasting and so `value`'s\nshape must be exactly the shape produced by the slice of `ref`.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------------------|-------------------------------------------------------------------|\n| `ref` | A mutable `Tensor`. |\n| `begin` | A `Tensor`. Must be one of the following types: `int32`, `int64`. |\n| `end` | A `Tensor`. Must have the same type as `begin`. |\n| `strides` | A `Tensor`. Must have the same type as `begin`. |\n| `value` | A `Tensor`. Must have the same type as `ref`. |\n| `begin_mask` | An optional `int`. Defaults to `0`. |\n| `end_mask` | An optional `int`. Defaults to `0`. |\n| `ellipsis_mask` | An optional `int`. Defaults to `0`. |\n| `new_axis_mask` | An optional `int`. Defaults to `0`. |\n| `shrink_axis_mask` | An optional `int`. Defaults to `0`. |\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 mutable `Tensor`. Has the same type as `ref`. ||\n\n\u003cbr /\u003e"]]