Open SaremS opened 6 years ago
Could you show the details of how you construct the model? For some reason the 80 dimensions in the mean are not being matched in the covariance. Are you using the DGP
class, or constructing the layers directly and using DGP_Base
? The full code to reproduce the error (with dummy data) would be great.
Hi,
at first thanks for sharing your work online - I am currently using this for my thesis and it's making things much easier.
However, I am having trouble tracing back the following error:
I have trained two DGP models using the Natural Gradient Optimization from this repository, one DGP has only one kernel, while the other one has a chain of three kernels
model.predict_y() works fine for both
model.predict_all_layers_full_cov() is only working with the one layer DGP, for the three-layer one (and I get the same error for a two-layer DGP) I get the following error:
InvalidArgumentError
Traceback (most recent call last) /usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py in _do_call(self, fn, args) 1321 try: -> 1322 return fn(args) 1323 except errors.OpError as e:
/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py in _run_fn(feed_dict, fetch_list, target_list, options, run_metadata) 1306 return self._call_tf_sessionrun( -> 1307 options, feed_dict, fetch_list, target_list, run_metadata) 1308
/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py in _call_tf_sessionrun(self, options, feed_dict, fetch_list, target_list, run_metadata) 1408 self._session, options, feed_dict, fetch_list, target_list, -> 1409 run_metadata) 1410 else:
InvalidArgumentError: In[0].dim(1) and In[1].dim(1) must be the same: [30,1,30,30] vs [30,80,30,1] [[Node: autoflow/DGP/predict_all_layers_full_cov_10/MatMul = BatchMatMul[T=DT_DOUBLE, adj_x=false, adj_y=false, _device="/job:localhost/replica:0/task:0/device:CPU:0"](autoflow/DGP/predict_all_layers_full_cov_10/Cholesky, autoflow/DGP/predict_all_layers_full_cov_10/strided_slice_4)]]
During handling of the above exception, another exception occurred:
InvalidArgumentError Traceback (most recent call last)