Skip to content

Commit 4f64b99

Browse files
QEDadyScenic Authors
authored andcommitted
Ignore some pytype errors.
PiperOrigin-RevId: 871279957
1 parent 26bd521 commit 4f64b99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scenic/projects/avatar/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ def get_metrics_fn(self, split: Optional[str] = None):
655655
"""
656656
del split # The metric function is the same for all splits.
657657

658-
def metric_fn(
658+
def metric_fn( # pytype: disable=annotation-type-mismatch
659659
logits: jnp.ndarray,
660660
targets: jnp.ndarray,
661661
weights: jnp.ndarray,

scenic/projects/pointcloud/segmentation_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def point_count(logits: jnp.ndarray,
6262
})
6363

6464

65-
def semantic_segmentation_metrics_function(
65+
def semantic_segmentation_metrics_function( # pytype: disable=annotation-type-mismatch
6666
logits: jnp.ndarray,
6767
batch: base_model.Batch,
6868
target_is_onehot: bool = False,

0 commit comments

Comments
 (0)