def testUniformAssertMaxGtMin(self):
with self.test_session():
a_v = np.array([1.0, 1.0, 1.0], dtype=np.float32)
b_v = np.array([1.0, 2.0, 3.0], dtype=np.float32)
uniform = uniform_lib.Uniform(a=a_v, b=b_v, validate_args=True)
with self.assertRaisesWithPredicateMatch(errors_impl.InvalidArgumentError,
"x < y"):
uniform.a.eval()
uniform_test.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录