relu-nki / build /torch-neuron /layers /__init__.py
danieldk's picture
danieldk HF Staff
Add layer
61992ce
Raw
History Blame Contribute Delete
160 Bytes
import torch
import torch.nn as nn
from .. import relu
class ReLU(nn.Module):
def forward(self, x: torch.Tensor) -> torch.Tensor:
return relu(x)