Skip to content

Commit e347044

Browse files
committed
Added relu to nn prescriptor
1 parent f4be859 commit e347044

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

presp/prescriptor/nn.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def __init__(self, model_params: list[dict], device: str = "cpu"):
3131
layers.append(torch.nn.Linear(**layer))
3232
elif layer_type == "tanh":
3333
layers.append(torch.nn.Tanh(**layer))
34+
elif layer_type == "relu":
35+
layers.append(torch.nn.ReLU(**layer))
3436
elif layer_type == "sigmoid":
3537
layers.append(torch.nn.Sigmoid(**layer))
3638
elif layer_type == "softmax":

0 commit comments

Comments
 (0)