mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2026-07-13 12:05:48 +00:00
7 lines
214 B
Python
7 lines
214 B
Python
import torch
|
|
from ..registry import meta_patched_function
|
|
|
|
|
|
@meta_patched_function.register(torch.nn.functional.relu)
|
|
def torch_nn_func_relu(input, inplace=False):
|
|
return torch.empty(input.shape, device='meta') |