Skip to content

Commit d75d285

Browse files
committed
Fix install dependencies
1 parent 4814b0c commit d75d285

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
tensorflow==2.6.3
2+
protobuf==3.19.6

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
setup(
55
name="tensorflow-riemopt",
6-
version="0.1.0",
6+
version="0.1.2",
77
description="a library for optimization on Riemannian manifolds",
88
long_description=open("README.md", "r").read(),
99
long_description_content_type="text/markdown",
1010
author="Oleg Smirnov",
1111
author_email="[email protected]",
1212
packages=find_packages(),
13-
install_requires=Path("requirements.txt").read_text().splitlines(),
13+
install_requires=["tensorflow==2.6.3", "protobuf==3.19.6"],
1414
python_requires=">=3.6.0",
1515
url="https://github.com/master/tensorflow-riemopt",
1616
zip_safe=True,

tensorflow_riemopt/manifolds/product.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def _get_slice(self, x, idx):
8282

8383
def _product_fn(self, fn, *args, **kwargs):
8484
results = []
85-
for (i, m) in enumerate(self._manifolds):
85+
for i, m in enumerate(self._manifolds):
8686
arg_slices = [self._get_slice(arg, i) for arg in args]
8787
result = getattr(m, fn)(*arg_slices, **kwargs)
8888
shape = tf.concat([tf.shape(result)[:-1], [-1]], axis=-1)
@@ -94,7 +94,7 @@ def random(self, shape, dtype=tf.float32):
9494
raise ValueError("Invalid shape {}".format(shape))
9595
shape = list(shape)
9696
results = []
97-
for (i, m) in enumerate(self._manifolds):
97+
for i, m in enumerate(self._manifolds):
9898
result = m.random(shape[:-1] + self._shapes[i], dtype=dtype)
9999
results.append(tf.reshape(result, shape[:-1] + [-1]))
100100
return tf.concat(results, axis=-1)

0 commit comments

Comments
 (0)