Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion torch_scatter/div.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def forward(ctx, out, src, index, dim):

@staticmethod
def backward(ctx, grad_out):
out, src, index = ctx.saved_variables
out, src, index = ctx.saved_tensors

grad_src = None
if ctx.needs_input_grad[1]:
Expand Down
2 changes: 1 addition & 1 deletion torch_scatter/max.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def forward(ctx, out, src, index, dim):

@staticmethod
def backward(ctx, grad_out, grad_arg):
index, arg = ctx.saved_variables
index, arg = ctx.saved_tensors

grad_src = None
if ctx.needs_input_grad[1]:
Expand Down
2 changes: 1 addition & 1 deletion torch_scatter/min.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def forward(ctx, out, src, index, dim):

@staticmethod
def backward(ctx, grad_out, grad_arg):
index, arg = ctx.saved_variables
index, arg = ctx.saved_tensors

grad_src = None
if ctx.needs_input_grad[1]:
Expand Down
2 changes: 1 addition & 1 deletion torch_scatter/mul.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def forward(ctx, out, src, index, dim):

@staticmethod
def backward(ctx, grad_out):
out, src, index = ctx.saved_variables
out, src, index = ctx.saved_tensors

grad_src = None
if ctx.needs_input_grad[1]:
Expand Down