Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to implement gpu memory resource adaptation by tfgo? #90

Open
fcgxz2003 opened this issue Nov 18, 2024 · 0 comments
Open

How to implement gpu memory resource adaptation by tfgo? #90

fcgxz2003 opened this issue Nov 18, 2024 · 0 comments

Comments

@fcgxz2003
Copy link

fcgxz2003 commented Nov 18, 2024

When I used tf.LoadSavedModel to load tensorflow models saved in python and used Session.Run to perform training, I found that gpu memory allocation was very high. But I didn't have this problem when I ran the training in python. I guess it's because tensorflow pre-allocates gpu memory in tfgo.

my question is
My question is how should I disable pre-allocation in tfgo to achieve the following effect in python?

config = tf.ConfigProto()  
config.gpu_options.allow_growth=True  
sess = tf.Session(config=config)

Or setting like tf.ConfigProto()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant