Fix docs for tf.tanh, tf.sigmoid and tf.tan.
The API docs incorrectly state that tf.tanh accepts int32 or int64 inputs. This was referenced in issue #10376, however, the fix to #10376 only removed the reference to qint32. A look at the implementation in cwise_op_tanh.cc shows that int32 and int64 are indeed not supported. This fix removes them from the API. Similarly, we remove int32, int64 and qint32 from tf.sigmoid API. Finally, tf.tan is defined only for float and double, so I changed in math_ops.cc to use UNARY_REAL.
Loading
Please sign in to comment