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

I didn't understand the code. #14

Open
unknowed-ER opened this issue Jun 23, 2022 · 0 comments
Open

I didn't understand the code. #14

unknowed-ER opened this issue Jun 23, 2022 · 0 comments

Comments

@unknowed-ER
Copy link

The following 2 lines code is in surge.py. I cann't understand the function of line 197 code. It seems that the execution of this code does not change the data.

196 A_bool = tf.cast(tf.greater(A, 0), A.dtype)
197 A_bool = A_bool * (tf.ones([A.shape.as_list()[1], A.shape.as_list()[1]]) - tf.eye(A.shape.as_list()[1])) + tf.eye(A.shape.as_list()[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

1 participant