tf.raw_ops.ResourceStridedSliceAssign  |  TensorFlow v2.16.1 (original) (raw)

tf.raw_ops.ResourceStridedSliceAssign

Stay organized with collections Save and categorize content based on your preferences.

Assign value to the sliced l-value reference of ref.

View aliases

Compat aliases for migration

SeeMigration guide for more details.

tf.compat.v1.raw_ops.ResourceStridedSliceAssign

tf.raw_ops.ResourceStridedSliceAssign(
    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 variableref that are selected by the slice parameters. The slice parametersbegin,end,strides, etc. work exactly as inStridedSlice`.

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 Tensor of type resource.
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.
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
The created Operation.