Skip to content
Open
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
4 changes: 3 additions & 1 deletion dacapo/experiments/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ def __get_output_shape(
The output shape is the spatial shape of the model, i.e., not accounting for channels and batch dimensions.

"""
dummy_data = torch.zeros((1, in_channels) + input_shape, device=self.get_device())
dummy_data = torch.zeros(
(1, in_channels) + input_shape, device=self.get_device()
)
with torch.no_grad():
out = self.forward(dummy_data)
return out.shape[1], Coordinate(out.shape[2:])
Expand Down