# tf.raw_ops.StridedSliceGrad

<br />

Returns the gradient of `StridedSlice`.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.StridedSliceGrad`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/StridedSliceGrad)

<br />

    tf.raw_ops.StridedSliceGrad(
        shape,
        begin,
        end,
        strides,
        dy,
        begin_mask=0,
        end_mask=0,
        ellipsis_mask=0,
        new_axis_mask=0,
        shrink_axis_mask=0,
        name=None
    )

Since `StridedSlice` cuts out pieces of its `input` which is size
`shape`, its gradient will have the same shape (which is passed here
as `shape`). The gradient will be zero in any element that the slice
does not select.

Arguments are the same as StridedSliceGrad with the exception that
`dy` is the input gradient to be propagated and `shape` is the
shape of `StridedSlice`'s `input`.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `shape` | A `Tensor`. Must be one of the following types: `int32`, `int64`. |
| `begin` | A `Tensor`. Must have the same type as `shape`. |
| `end` | A `Tensor`. Must have the same type as `shape`. |
| `strides` | A `Tensor`. Must have the same type as `shape`. |
| `dy` | 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). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor`. Has the same type as `dy`. ||

<br />