When a tensorflow example uses tf.app.run() the tracing fails.
The reason is, that tf.app.run does the following [1]:
main = main or _sys.modules['__main__'].main
# Call the main function, passing through any arguments
# to the final program.
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
_sys.modules['__main__'].main calls the main of the tracing module. This brakes.
Possible solution:
import the target program and forward the call to target.main()
When a tensorflow example uses tf.app.run() the tracing fails.
The reason is, that tf.app.run does the following [1]:
_sys.modules['__main__'].maincalls the main of the tracing module. This brakes.Possible solution:
import the target program and forward the call to
target.main()