Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dimensionality of oracle #2

Open
yiyanggong opened this issue Oct 11, 2022 · 2 comments
Open

Dimensionality of oracle #2

yiyanggong opened this issue Oct 11, 2022 · 2 comments

Comments

@yiyanggong
Copy link

Hi, I'm running the code, and it's throwing an error when compiling the model for the oracles. The neg_loss function is expecting a two element y_pred for each gfp variant, but the model for the oracles generated by the function build_pred_model only outputs a one element y_pred. The full error output when running [run_gfp_tests.py] is below:

ValueError: slice index 1 of dimension 1 out of bounds. for 'loss/dense_1_loss/strided_slice_2' (op: 'StridedSlice') with input shapes: [?,1], [2], [2], [2] and with computed input tensors: input[1] = <0 1>, input[2] = <0 2>, input[3] = <1 1>.

Thanks.

@SimonBartels
Copy link

I have the same problem.

@SimonBartels
Copy link

It seems that in the original code the dense layer in build_pred_model was of size 2 and not 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants