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: 2 additions & 2 deletions utils/nn.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import math
from typing import Dict
from typing import Dict, Tuple

from flax import linen as nn
import jax
Expand Down Expand Up @@ -112,7 +112,7 @@ def setup(self):
)
self.drop = nn.Dropout(self.dropout, deterministic=False)

def __call__(self, x: jax.Array, training: bool) -> Dict[str, jax.Array]:
def __call__(self, x: jax.Array, training: bool) -> Tuple[jax.Array, jax.Array, jax.Array, jax.Array]:
# --- Compute distances ---
x = normalize(x)
codebook = normalize(self.codebook)
Expand Down