Every time gymtorch
is imported, I get terminal output like this:
Importing module 'gym_37' (/home/adam/source_code/isaacgym/python/isaacgym/_bindings/linux-x86_64/gym_37.so)
Setting GYM_USD_PLUG_INFO_PATH to /home/adam/source_code/isaacgym/python/isaacgym/_bindings/linux-x86_64/usd/plugInfo.json
PyTorch version 1.7.1
Device count 1
Current device 0
/home/adam/source_code/isaacgym/python/isaacgym/_bindings/src/gymtorch
Using /home/adam/.cache/torch_extensions as PyTorch extensions root...
Emitting ninja build file /home/adam/.cache/torch_extensions/gymtorch/build.ninja...
Building extension module gymtorch...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
ninja: no work to do.
Loading extension module gymtorch...
Is there an easy way to prevent all of this from printing to the terminal? My issue now is I’m using the multiprocessing
package to alternate running the simulator and training a model. However, for some reason on every epoch of training the model it re-imports gymtorch
(I’m not sure why that’s happening, each new epoch is still in the same process) and my terminal is getting polluted with the gymtorch
output. Any thoughts on how to prevent that text from displaying?