File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11scipy >= 1.2.0
22Theano >= 1.0.4
33tf-nightly-2.0-preview == 2.0.0.dev20190606
4- tfp-nightly >= 0.7 .0.dev20190320
4+ tfp-nightly == 0.8 .0.dev20190705
55pymc3 >= 3.6
66pymc4 @ git+https://github.com/pymc-devs/pymc4.git@master#egg=pymc4-0.0.1
77multipledispatch >= 0.6.0
Original file line number Diff line number Diff line change @@ -177,6 +177,9 @@ def __hash__(self):
177177 return hash ((self ._unique_name , self ._in_idx ))
178178
179179
180+ _metatize .add ((TFlowOpName ,), lambda x : x )
181+
182+
180183def _metatize_tf_object (obj ):
181184 try :
182185 obj = tf .convert_to_tensor (obj )
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ def test_op_names():
4141 # but not output numbers
4242 assert TFlowOpName ('blah/add_1:0' ) != TFlowOpName ('blah/add:1' )
4343
44+ assert isinstance (mt (TFlowOpName ('blah/add_1:0' )), TFlowOpName )
45+
4446
4547@pytest .mark .usefixtures ("run_with_tensorflow" )
4648def test_meta_helper ():
You can’t perform that action at this time.
0 commit comments