isinstance(tf.Variable([1]), tf.Tensor) returns False but returns True for tf.constant([1]). The variable implementation will be required for computing gradients as constants cannot be modified in tensorflow. Currently the code is functional for the tf.constant([1]) implementation
isinstance(tf.Variable([1]), tf.Tensor)
returns False but returns True fortf.constant([1])
. The variable implementation will be required for computing gradients as constants cannot be modified in tensorflow. Currently the code is functional for thetf.constant([1])
implementation