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

InvalidArgumentError (see above for traceback): indices[1] = 3 is not in [0, 3) #1

Open
Danstry opened this issue Oct 12, 2022 · 1 comment

Comments

@Danstry
Copy link

Danstry commented Oct 12, 2022

您好,在调试您所公布的代码时,出现了以下错误。经过一番尝试后未能解决,于是前来询问。报错如下:

InvalidArgumentError (see above for traceback): indices[1] = 3 is not in [0, 3)
[[node GatherV2 (defined at /Users/Gavin/NN-2022-MVGC/optimizer.py:65) ]]

环境版本说明 :

OS: macOS Monterey 12.2.1
Python Version :Python 3.6.13
Package Version : tensorflow 1.13.1

Add any other context about the problem here.

在调试MainTask.py的125行时报的错,代码文件中报错语句如下:

s2_Coef, Fin_Total, cost, SEloss, consistent_loss, S_Regular, Cq_loss, dense_loss, center_loss, csd = Fin_update(MGCN_model, opt, sess, X1, X2, A1, A2, A1, A2, PW1, PW2, one_hot_Label, s2_Theta, Y, placeholders)

@CyanideCentral
Copy link

I managed to get the algorithm running by changing "Y" in line 126 of MainTask.py into "Y-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