in shap_e/models/nn/ops.py [0:0]
def get_act(name):
return {
"relu": torch.nn.functional.relu,
"leaky_relu": torch.nn.functional.leaky_relu,
"swish": swish,
"tanh": torch.tanh,
"gelu": gelu,
"quick_gelu": quick_gelu,
"torch_gelu": torch_gelu,
"gelu2": quick_gelu,
"geglu": geglu,
"sigmoid": torch.sigmoid,
"sin": torch.sin,
"sin30": SirenSin(w0=30.0),
"softplus": F.softplus,
"exp": torch.exp,
"identity": lambda x: x,
}[name]