Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compressai/models/video/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def warp_volume(self, volume, flow, scale_field, padding_mode: str = "border"):

N, C, _, H, W = volume.size()

with amp.autocast(device_type=volume.device.type, enabled=False):
with amp.autocast(volume.device.type, enabled=False):
grid = meshgrid2d(N, C, H, W, volume.device)
update_grid = grid + flow.permute(0, 2, 3, 1).float()
update_scale = scale_field.permute(0, 2, 3, 1).float()
Expand Down
2 changes: 1 addition & 1 deletion compressai/utils/video/eval_model/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def run_inference(
continue

with amp.autocast(
device_type=next(net.parameters()).device.type, enabled=args["half"]
next(net.parameters()).device.type, enabled=args["half"]
):
with torch.no_grad():
if entropy_estimation:
Expand Down