Skip to content

Commit 55d33c2

Browse files
Updates for newer TensorFlow and etuples
1 parent d16be7d commit 55d33c2

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

setup.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@ def get_long_description():
3434
install_requires=[
3535
"scipy>=1.2.0",
3636
"Theano>=1.0.4",
37-
"tf-nightly-2.0-preview==2.0.0.dev20191002",
38-
"tf-nightly==2.1.0.dev20191003",
39-
"tf-estimator-nightly==2.0.0.dev2019100301",
40-
"tensorflow-estimator-2.0-preview==1.14.0.dev2019090801",
41-
"tfp-nightly==0.9.0.dev20191003",
37+
"tf-estimator-nightly==2.1.0.dev2020012309",
38+
"tf-nightly==2.2.0.dev20200201",
39+
"tfp-nightly==0.10.0.dev20200201",
4240
"multipledispatch>=0.6.0",
4341
"logical-unification>=0.4.3",
4442
"miniKanren>=1.0.1",
45-
"etuples>=0.3.1",
43+
"etuples>=0.3.2",
4644
"cons>=0.4.0",
4745
"toolz>=0.9.0",
4846
"cachetools",

symbolic_pymc/tensorflow/meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ class TFlowMetaOp(TFlowMetaSymbol):
434434
@classmethod
435435
def _metatize(cls, obj):
436436
"""Reformat inputs to match the OpDef."""
437-
new_input = obj._reconstruct_sequence_inputs(obj.op_def, obj.inputs, obj.node_def.attr)
437+
new_input = ops._reconstruct_sequence_inputs(obj.op_def, obj.inputs, obj.node_def.attr)
438438
new_args = [
439439
getattr(obj, s) if s != "inputs" else new_input for s in getattr(cls, "__props__", [])
440440
]

tests/tensorflow/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from collections.abc import Mapping
22

33
import tensorflow as tf
4+
from tensorflow.python.framework import ops
45

56

67
def assert_ops_equal(a, b, compare_fn=lambda a, b: a.op.type == b.op.type):
@@ -10,7 +11,7 @@ def assert_ops_equal(a, b, compare_fn=lambda a, b: a.op.type == b.op.type):
1011
assert compare_fn(a, b)
1112

1213
if isinstance(a.op, tf.Operation):
13-
a_inputs = a.op._reconstruct_sequence_inputs(
14+
a_inputs = ops._reconstruct_sequence_inputs(
1415
a.op.op_def, a.op.inputs, a.op.node_def.attr
1516
)
1617
elif isinstance(a.op, Mapping):
@@ -19,7 +20,7 @@ def assert_ops_equal(a, b, compare_fn=lambda a, b: a.op.type == b.op.type):
1920
a_inputs = list(a.op.inputs)
2021

2122
if isinstance(b.op, tf.Operation):
22-
b_inputs = b.op._reconstruct_sequence_inputs(
23+
b_inputs = ops._reconstruct_sequence_inputs(
2324
b.op.op_def, b.op.inputs, b.op.node_def.attr
2425
)
2526
elif isinstance(b.op, Mapping):

0 commit comments

Comments
 (0)