def testJaxTypeFromVal(self, jaxtype): try: val = jaxtype(0) except TypeError: val = jaxtype.type(0) self.assertIs(dtypes._jax_type(*dtypes._dtype_and_weaktype(val)), jaxtype)
def testJaxTypeFromType(self, jaxtype): self.assertIs(dtypes._jax_type(*dtypes._dtype_and_weaktype(jaxtype)), jaxtype)