How can I set environmental variable?

Hello, I’m using a custom pipeline, and I want to set environmental variable

"TF_FORCE_GPU_ALLOW_GROWTH"

to True. How can I do it?

@Pavel Hey! Where you want to set the environment variables there are so many ways to do that, you want to set in localhost code, or in docker or in github, or gitlab or python etc etc.

My Rasa’s running in Docker. So I need it to be set inside container so that the tensorflow doesn’t consume a lot of memory while training. I tried:

export TF_FORCE_GPU_ALLOW_GROWTH=True

But it doesn’t seem to have any effect.

@Pavel Please see these for your query solution https://youtu.be/WqiazgeOsiQ | https://youtu.be/0JXyJOwVFfo hope it will solved your issue. Thanks.

1 Like