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

what does array_ops.where mean? #7

Open
DRosemei opened this issue May 14, 2018 · 1 comment
Open

what does array_ops.where mean? #7

DRosemei opened this issue May 14, 2018 · 1 comment

Comments

@DRosemei
Copy link

Thanks for your sharing. I want to know what array_ops.where means. Is it similar to tf.where?
Besides, I use it for SSD-Tensorflow, and loss is very high. I make some changes.

sigmoid_p = tf.nn.sigmoid(prediction_tensor)
zeros = array_ops.zeros_like(sigmoid_p, dtype=sigmoid_p.dtype)

t = tf.one_hot(indices = target_tensor, depth = 4)
t_tensor = tf.cast(t, sigmoid_p.dtype)  

pos_p_sub = tf.where(t_tensor > zeros, t_tensor - sigmoid_p, zeros)

Could you tell me why?

@ChiefGodMan
Copy link
Owner

I‘m sorry for my late reply. tf.where actually is a wrapper for array_ops.where function.
I don't know your target_tensor type, you just need replace your original loss function using the focal loss function.

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