def applicable_jax2tf_limitation(l: Jax2TfLimitation) -> bool: # The CheckShapePolymorphism uses tf.function, so we care about "graph" return l.filter(device=device, dtype=h.dtype, mode="graph")
def applicable_jax2tf_limitation(l: Jax2TfLimitation) -> bool: return (l.filter(device=device, dtype=h.dtype, mode="graph") and l.expect_tf_error)