Skip to content

Commit 80003ca

Browse files
committed
ran ruff formatter locally
1 parent f6d43ac commit 80003ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nerfstudio/field_components/activations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ class _TruncExp(Function):
2929
# Implementation from torch-ngp:
3030
# https://github.com/ashawkey/torch-ngp/blob/93b08a0d4ec1cc6e69d85df7f0acdfb99603b628/activation.py
3131
@staticmethod
32-
@custom_fwd(cast_inputs=torch.float32, device_type='cuda')
32+
@custom_fwd(cast_inputs=torch.float32, device_type="cuda")
3333
def forward(ctx, x):
3434
ctx.save_for_backward(x)
3535
return torch.exp(x)
3636

3737
@staticmethod
38-
@custom_bwd(device_type='cuda')
38+
@custom_bwd(device_type="cuda")
3939
def backward(ctx, g):
4040
x = ctx.saved_tensors[0]
4141
return g * torch.exp(x.clamp(-15, 15))

0 commit comments

Comments
 (0)