block_compiler_test.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:fold 作者: tensorflow 项目源码 文件源码
def test_init_raises(self):
    six.assertRaisesRegex(
        self, TypeError, 'root must have at least one output',
        tdc.Compiler.create, tdb.Record([]))
    six.assertRaisesRegex(
        self, TypeError, 'root outputs must all be tensors',
        tdc.Compiler.create, tdb.GetItem('foo'))
    six.assertRaisesRegex(
        self, TypeError, 'root output may not contain sequences',
        tdc.Compiler.create, tdb.Map(tdb.Scalar()))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号