• khaotik's avatar
    bug fix/cleanups · 7608602e
    khaotik 提交于
    - Moved old docstring in OpFromGraph to function op_from_graph
    - Added an new example for op_from_graph docstring
    - now we can access `theano.op_from_graph` and
      `theano.OpFromGraph<Inline|Precompiled>`
    
    in `unittesttools.py`:
    ```
    if check_topo:
        topo_shape = shapes_function.maker.fgraph.toposort()
        assert not any(isinstance(t.op, cls) for t in topo_shape)
    topo_out = outputs_function.maker.fgraph.toposort()
    assert any(isinstance(t.op, cls) for t in topo_out)
    ```
    This seems to check existence of op in `topo_out` regardless `check_topo`.
    Since OpFromGraphInline will be replaced with its internal graph at
    compile time, this check will always cause error. Thus I moved them
    inside the `if` clause.
    7608602e
名称
最后提交
最后更新
..
__init__.py 正在载入提交数据...
breakpoint.py 正在载入提交数据...
disturb_mem.py 正在载入提交数据...
diverse_tests.py 正在载入提交数据...
main.py 正在载入提交数据...
record.py 正在载入提交数据...
run_tests_in_batch.py 正在载入提交数据...
test_2nd_order_grads.py 正在载入提交数据...
test_breakpoint.py 正在载入提交数据...
test_config.py 正在载入提交数据...
test_determinism.py 正在载入提交数据...
test_dictionary_output.py 正在载入提交数据...
test_flake8.py 正在载入提交数据...
test_gradient.py 正在载入提交数据...
test_ifelse.py 正在载入提交数据...
test_pickle_unpickle_theano_fn.py 正在载入提交数据...
test_printing.py 正在载入提交数据...
test_record.py 正在载入提交数据...
test_rop.py 正在载入提交数据...
test_updates.py 正在载入提交数据...
unittest_tools.py 正在载入提交数据...