Skip to content

Commit

Permalink
fix(mosaic): drop Literal typing
Browse files Browse the repository at this point in the history
  • Loading branch information
loiccoyle committed Jun 24, 2024
1 parent 7eca6ba commit 9fe6c0f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions phomo/mosaic.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ def d_matrix(
self._log.debug("d_matrix shape: %s", d_matrix.shape)
return d_matrix

def d_matrix_cuda(
self, metric: Literal["norm"] | Literal["greyscale"] = "norm"
) -> np.ndarray:
def d_matrix_cuda(self, metric: str = "norm") -> np.ndarray:
"""Compute the distance matrix using CUDA for GPU acceleration.
Args:
Expand Down

0 comments on commit 9fe6c0f

Please sign in to comment.