Skip to content

Commit ec94626

Browse files
authored
Fix invalid type annotation. (#48)
`ops` is a module not a type.
1 parent 2903ae3 commit ec94626

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

keras_rs/src/utils/pairwise_loss_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
from keras_rs.src.utils.keras_utils import check_shapes_compatible
77

88

9-
def apply_pairwise_op(x: types.Tensor, op: ops) -> types.Tensor:
9+
def apply_pairwise_op(
10+
x: types.Tensor, op: Callable[[types.Tensor, types.Tensor], types.Tensor]
11+
) -> types.Tensor:
1012
return op(
1113
ops.expand_dims(x, axis=-1),
1214
ops.expand_dims(x, axis=-2),

0 commit comments

Comments
 (0)