class_docstr: Test ObjectDetectionWithMatchingModel.
class_docstr_tok: ["Test","ObjectDetectionWithMatchingModel","."]
docstr: Helper function to assert that tensor `t` does not have `nan`, `inf`.
docstr_tok: ["Helper","function","to","assert","that","tensor","`","t","`","does","not","have","`","nan","`",",","`","inf","`","."]
code: def is_valid(self, t):
      """Helper function to assert that tensor `t` does not have `nan`, `inf`."""
      self.assertFalse(jnp.isnan(t).any(), msg=f"Found nan's in {t}")
      self.assertFalse(jnp.isinf(t).any(), msg=f"Found inf's in {t}")
  
imports: from absl.testing import absltest
  from absl.testing import parameterized
  from flax import jax_utils
  import jax
  import jax.numpy
  import ml_collections
  import numpy
  from scenic.projects.baselines.detr import detr_base_model
label_desc: Use image node_id 1 for calling the TestObjectDetectionWithMatchingModel obj's underlying member method code with example usage: obj.is_valid(t) without return types