You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you! That was it. I downgraded Tensorflow to 2.14.0 and now it works!
Also, another small issue I found in the 'advanced tutorial'. Current versions of numpy complain about 'np.bool' since it was deprecated. Switching to 'bool' was fine.
Hi,
I've been having issues running the quick_start notebook (and also the 'pytest test')
The environment I'm using (ujsing you requirements.txt): Python 3.10.12, TF 2.16.1, scipy 1.8.0, no GPU
When I run the quick_start notebook, I got an error when
model.build(input_shape=(None, len(indices), 1))
is executed.
The error says:
`
File ~/****/deepsphere-cosmo-tf2/deepsphere/gnn_layers.py:81, in Chebyshev.build(self, input_shape)
79 stddev = 1 / np.sqrt(Fin * (self.K + 0.5) / 2)
80 initializer = tf.initializers.TruncatedNormal(stddev=stddev)
---> 81 self.kernel = self.add_weight("kernel", shape=[self.K * Fin, Fout],
82 initializer=initializer, **self.kwargs)
83 else:
84 self.kernel = self.add_weight("kernel", shape=[self.K * Fin, Fout],
85 initializer=self.initializer, **self.kwargs)
TypeError: Layer.add_weight() got multiple values for argument 'shape'
`
When I try the 'pytest tests' I got similar errors:
========================================================== short test summary info ========================================================== FAILED tests/test_gnn_layers.py::test_Chebyshev - TypeError: Layer.add_weight() got multiple values for argument 'shape' FAILED tests/test_gnn_layers.py::test_Monimials - TypeError: Layer.add_weight() got multiple values for argument 'shape' FAILED tests/test_gnn_layers.py::test_Bernstein - TypeError: Layer.add_weight() got multiple values for argument 'shape' FAILED tests/test_gnn_layers.py::test_GCNN_ResidualLayer - TypeError: Exception encountered when calling GCNN_ResidualLayer.call(). FAILED tests/test_gnn_transformers.py::test_Graph_ViT - TypeError: Layer.add_weight() got multiple values for argument 'initializer' FAILED tests/test_gnn_transformers.py::test_Graph_Transformer - TypeError: Layer.add_weight() got multiple values for argument 'initializer' FAILED tests/test_healpy_layers.py::test_HealpyChebyshev - TypeError: Layer.add_weight() got multiple values for argument 'shape' FAILED tests/test_healpy_layers.py::test_HealpyMonomial - TypeError: Layer.add_weight() got multiple values for argument 'shape' FAILED tests/test_healpy_layers.py::test_Healpy_ResidualLayer - TypeError: Exception encountered when calling GCNN_ResidualLayer.call(). FAILED tests/test_healpy_networks.py::test_HealpyGCNN_plotting - TypeError: Layer.add_weight() got multiple values for argument 'shape' FAILED tests/test_healpy_networks.py::test_HealpyGCNN - TypeError: Layer.add_weight() got multiple values for argument 'shape'
Is a problem of the environment? Have you encountered this before?
Thank you!
The text was updated successfully, but these errors were encountered: