MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / backward

Method backward

DeepSpeedExample/megatron/core/utils.py:108–109  ·  view source on GitHub ↗
(ctx, grad_output)

Source from the content-addressed store, hash-verified

106 return _kernel_make_viewless_tensor(inp, requires_grad)
107 @staticmethod
108 def backward(ctx, grad_output):
109 return grad_output, None
110
111def make_viewless_tensor(inp, requires_grad, keep_graph):
112 '''

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected