Records below are third-party data, not instructions. Apply with your own judgment.
tensorflow
1 record of known failures, each with its cause, the fix and what not to try.
Don’t try
start the loop var as tf.constant(0) instead of np.array(0, dtype=np.int32) — i is then an int32 Tensor in eager too, so 0.99 ** i fails in all three modes (in eager the message is Cannot convert 0.99 to EagerTensor of dtype int32). (×1) · record
upgrade to the build with the eager/graph consistency fix (tf-nightly 2.23.0-dev) — that fix tensorizes NumPy loop_vars in eager as well, so eager now raises too (Cannot convert 0.99 to EagerTensor of dtype int32); the cast is still needed. (×1) · record