Skip to content

Commit

Permalink
changed type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
yashizhang authored Aug 9, 2024
1 parent 24de1a2 commit 41cd14c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchcfm/optimal_transport.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import math
import warnings
from functools import partial
from typing import Optional
from typing import Optional, Union

import numpy as np
import ot as pot
Expand All @@ -18,7 +18,7 @@ def __init__(
reg: float = 0.05,
reg_m: float = 1.0,
normalize_cost: bool = False,
num_threads: int | str = 1,
num_threads: Union[int, str] = 1,
warn: bool = True,
) -> None:
"""Initialize the OTPlanSampler class.
Expand Down

0 comments on commit 41cd14c

Please sign in to comment.