Skip to content

Commit 6cc8451

Browse files
authored
Prepare requirements for tflite (#118)
1 parent 4a45b8c commit 6cc8451

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

compiler_opt/rl/constant_value_network.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ def __init__(self, input_tensor_spec, constant_output_val=0, name=None):
4545

4646
self._constant_output_val = constant_output_val
4747

48-
def call(self, observation, step_type=None, network_state=(), training=False):
48+
def call(self, inputs, step_type=None, network_state=(), training=False):
4949
_ = (step_type, training)
50-
shape = nest_utils.get_outer_array_shape(observation,
51-
self._input_tensor_spec)
50+
shape = nest_utils.get_outer_array_shape(inputs, self._input_tensor_spec)
5251
return tf.constant(
5352
self._constant_output_val, tf.float32, shape=shape), network_state

pytest.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ filterwarnings =
1717

1818
# Not much to do about this, it's caused by gin
1919
ignore:Using or importing the ABCs from 'collections':DeprecationWarning
20+
21+
# Issue #119
22+
ignore:Encoding a StructuredValue with type tfp.distributions.Deterministic_ACTTypeSpec:UserWarning

requirements.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
absl-py==0.11.0
1+
absl-py==1.0.0
22
astunparse==1.6.3
33
cachetools==4.2.2
44
certifi==2021.5.30
@@ -18,9 +18,7 @@ grpcio==1.39.0
1818
gym==0.19.0
1919
h5py==3.6.0
2020
idna==3.2
21-
keras==2.7.0
22-
keras-preprocessing==1.1.2
23-
libclang==12.0.0
21+
libclang==13.0.0
2422
markdown==3.3.4
2523
numpy==1.22.1
2624
oauthlib==3.1.1
@@ -40,12 +38,12 @@ six==1.16.0
4038
tensorboard==2.7.0
4139
tensorboard-data-server==0.6.1
4240
tensorboard-plugin-wit==1.8.0
43-
tensorflow==2.7.0
41+
tf-nightly==2.11.0.dev20220823
4442
tensorflow-estimator==2.7.0
4543
tensorflow-io-gcs-filesystem==0.23.1
4644
tensorflow-probability==0.15.0
4745
termcolor==1.1.0
48-
tf-agents==0.11.0
46+
tf-agents-nightly==0.14.0.dev20220823
4947
typing-extensions==4.0.1
5048
urllib3==1.26.6
5149
werkzeug==2.0.1

0 commit comments

Comments
 (0)