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
Unclear documentation for tf.layers.dense flattening behavior #8175
Comments
Whoops, sorry, didn't mean to remove myself. Investigating internally, was trying to add the person I think is responsible. |
So, after investigation, what I was told was that it behaves like tensordot, and so the behavior and the current documentation are both correct -- and the engineer I talked to said that they thought we could use more precise language but that it wouldn't necessarily help as the current language is clear and unambiguous when in context. (See tensordot: https://docs.scipy.org/doc/numpy/reference/generated/numpy.tensordot.html) If you want to try to make a pull request yourself to do some rewording, that would be welcome, but I'm closing this bug for now since we're not going to do anything about it internally. |
Ah thanks, tensordot connection makes it more clear. It seems Toy example I made for myself to translate tf.dense to equivalent np.tensordot
|
Documentation states:
However, the following returns tensor with shape
shape=(2, 2, 2, 400)
, as if the input has not been flattenedtf.layers.dense(tf.placeholder(tf.float32, (2,2,2,2)), 400)
The text was updated successfully, but these errors were encountered: