"mmde/docs/en/advanced_guides/datasets/sunrgbd.md" did not exist on "7aa442d5f635889648e8570b77af46eb088c78d6"
activation.py 167 Bytes
Newer Older
zcxzcx1's avatar
zcxzcx1 committed
1
2
3
4
5
6
7
8
import math

import torch


@torch.jit.script
def ShiftedSoftPlus(x: torch.Tensor) -> torch.Tensor:
    return torch.nn.functional.softplus(x) - math.log(2.0)