Skip to content

Commit

Permalink
fix missing import Optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Niccolo-Ajroldi committed Oct 25, 2024
1 parent 5a06a0d commit 86114ef
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Submission file for a SGD with HeavyBall momentum optimizer in Jax."""

import functools
from typing import Any, Callable, Dict, Iterator, List, Tuple
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple

from flax import jax_utils
import jax
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Submission file for a SGD with HeavyBall momentum optimizer in PyTorch."""

from typing import Any, Callable, Dict, Iterator, List, Tuple
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple

from absl import logging
import optax
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Submission file for a SGD with Nesterov momentum optimizer in Jax."""

import functools
from typing import Any, Callable, Dict, Iterator, List, Tuple
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple

from flax import jax_utils
import jax
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Submission file for a SGD with Nesterov momentum optimizer in PyTorch."""

from typing import Any, Callable, Dict, Iterator, List, Tuple
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple

from absl import logging
import optax
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Submission file for a SAM optimizer with warmup+cosine LR in PyTorch."""

from typing import Any, Callable, Dict, Iterator, List, Tuple
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple

from absl import logging
import torch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Update submission function in Jax."""
import functools
from typing import Any, Dict, List, Tuple
from typing import Any, Dict, List, Optional, Tuple

import jax
from jax import lax
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Batch size and update submission functions in PyTorch."""

from typing import Any, Dict, List, Tuple
from typing import Any, Dict, List, Optional, Tuple

from absl import logging
import torch
Expand Down

0 comments on commit 86114ef

Please sign in to comment.