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

Method forward

DeepSpeedExample/megatron/core/utils.py:105–106  ·  view source on GitHub ↗
(ctx, inp, requires_grad)

Source from the content-addressed store, hash-verified

103 '''
104 @staticmethod
105 def forward(ctx, inp, requires_grad):
106 return _kernel_make_viewless_tensor(inp, requires_grad)
107 @staticmethod
108 def backward(ctx, grad_output):
109 return grad_output, None

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected