You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I recommend doing this operation in Python before exporting the saved model.
# model is your model definition @tf.functiondefinference(input, on_gpu):
iftf.equal(on_gpu, True):
withtf.device("/gpu:0"):
returnmodel(input)
returnmodel(input)
Hi, I recommend doing this operation in Python before exporting the saved model.
# model is your model definition @tf.functiondefinference(input, on_gpu):
iftf.equal(on_gpu, True):
withtf.device("/gpu:0"):
returnmodel(input)
returnmodel(input)
I'm new for TensorFlow.
Is that mean: use CPU or GPU are depend on saved model? Not a optional for server?
After installing libtensorflow that supports both CPU and GPU. How to select which device to run on ?
Thanks in advance
The text was updated successfully, but these errors were encountered: