Slice_backward op

When I use with torch.autograd.profiler.profile I saw a op called slice_backward, and there are some questions about slice_backward op

  1. where is the source code and what does slice_backward do
  2. what is the difference with the backward function SliceBackward0
  3. where is the source code about SliceBackward0
    I am so appreciate that some one can tell me

The backward kernel should be defined here. I don’t know how exactly SliceBackward0 is generated, but it should be located in torch/csrc/autograd/generated/Functions.cpp (or a related file) in a local source build. @albanD might know details about the internals how the auto-generated method calls into the kernel.

That is correct!
SliceBackward0 is the autograd “Node” that goes into the “autograd graph”
While at::slice_backward() is the aten op being called by this node to perform the computations it needs to perform.

I’m understand. THX!