This page lists some deprecated functions in TensorFlow I have noticed.
THIS FUNCTION IS DEPRECATED. It will be removed after 2017-03-02. Instructions for updating: Use tf.global_variables_initializer instead.
THIS FUNCTION IS DEPRECATED. It will be removed after 2017-03-02. Instructions for updating: Use tf.local_variables_initializer instead.
The following deprecated are from this link
- Division and modulus operators (/, //, %) now match Python (flooring) semantics. This applies to
tf.divandtf.modas well. To obtain forced integer truncation based behaviors you can usetf.truncatedivandtf.truncatemod. tf.divide()is now the recommended division function.tf.div()will remain, but its semantics do not respond to Python 3 orfrom futuremechanisms.- tf.reverse() now takes indices of axes to be reversed. E.g.
tf.reverse(a, [True, False, True])must now be written astf.reverse(a, [0, 2]).tf.reverse_v2()will remain until 1.0 final. tf.mul,tf.subandtf.negare deprecated in favor oftf.multiply,tf.subtractandtf.negative.tf.packandtf.unpackare deprecated in favor oftf.stackandtf.unstack.TensorArray.packandTensorArray.unpackare getting deprecated in favor ofTensorArray.stackandTensorArray.unstack.- The following Python functions have had their arguments changed to use
axiswhen referring to specific dimensions. We have kept the old keyword arguments for compatibility currently, but we will be removing them well before the final 1.0.tf.argmax:dimensionbecomesaxistf.argmin:dimensionbecomesaxistf.count_nonzero:reduction_indicesbecomesaxistf.expand_dims:dimbecomesaxistf.reduce_all:reduction_indicesbecomesaxistf.reduce_any:reduction_indicesbecomesaxistf.reduce_join:reduction_indicesbecomesaxistf.reduce_logsumexp:reduction_indicesbecomesaxistf.reduce_max:reduction_indicesbecomesaxistf.reduce_mean:reduction_indicesbecomesaxistf.reduce_min:reduction_indicesbecomesaxistf.reduce_prod:reduction_indicesbecomesaxistf.reduce_sum:reduction_indicesbecomesaxistf.reverse_sequence:batch_dimbecomesbatch_axis,seq_dimbecomesseq_axistf.sparse_concat:concat_dimbecomesaxistf.sparse_reduce_sum:reduction_axesbecomesaxistf.sparse_reduce_sum_sparse:reduction_axesbecomesaxistf.sparse_split:split_dimbecomesaxis
tf.listdiffhas been renamed totf.setdiff1dto match NumPy naming.tf.invhas been renamed to betf.reciprocal(component-wise reciprocal) to avoid confusion withnp.invwhich is matrix inversion- tf.round now uses banker’s rounding (round to even) semantics to match NumPy.
tf.splitnow takes arguments in a reversed order and with different keywords. In particular, we now match NumPy order astf.split(value, num_or_size_splits, axis).tf.sparse_splitnow takes arguments in reversed order and with different keywords. In particular we now match NumPy order astf.sparse_split(sp_input, num_split, axis). NOTE: we have temporarily madetf.sparse_splitrequire keyword arguments.- Deprecated
tf.concatoperator. Please switch to usetf.concat_v2for now. In the Beta release, we will updatetf.concatto match argument order of `tf.concat_v2. - tf.image.decode_jpeg by default uses the faster DCT method, sacrificing a little fidelity for improved speed. One can revert to the old behavior by specifying the attribute dct_method=’INTEGER_ACCURATE’.
tf.complex_abshas been removed from the Python interface.tf.abssupports complex tensors and should be used instead.
- In TensorFlow version 1.0, be sure to switch all the tf.scalar_summary() to tf.summary.scalar(), and tf.merge_all_summaries() to tf.summary.merge_all()