Could you post a minimal and executable code snippet, which would reproduce this issue, so that we could help debugging?
Based on the error it seems you are trying to use:
relu = nn.ReLU()
relu.threshold()
> AttributeError: 'ReLU' object has no attribute 'threshold'

while most likely you want to use:
relu = nn.ReLU()
x = torch.randn(10, 10)
out = relu(x)