anyone knows what is the function of tensorflow.python.grappler

407 views
Skip to first unread message

max....@gmail.com

unread,
Oct 13, 2017, 8:40:14 PM10/13/17
to Discuss
Hi, guys
I encountered with a problem when running the code of ptb_word_lm.py (https://github.com/tensorflow/models/blob/master/tutorials/rnn/ptb/ptb_word_lm.py). The problem happened at the function "auto_parallel", which is defined in util.py. This function is enabled whne the gpu number is great than 1, which is just my case.

Since the function "auto_parallel" mainly depends on the module "tensorflow.python.grappler", I want to ask that what is the function or purpose of the module "grappler"? What is the correct version of tensorflow and python to make  the module "grappler" work? and if the module "grappler" isn't working, is the tensorflow will not use all the gpus  installed on the computer simultaneously ?


Thanks a lot in advance



Toby Boyd

unread,
Oct 13, 2017, 8:56:17 PM10/13/17
to max....@gmail.com, Discuss
Hi Max,

Grappler exists in TF 1.3 I would get TF 1.4RC to ensure you have the latest as that module in active development.  Grappler does some real-time optimizations of your graph.  I do not work with it enough to go into too many details but I wanted to give you this info to get you started.

Toby



--
You received this message because you are subscribed to the Google Groups "Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+unsubscribe@tensorflow.org.
To post to this group, send email to dis...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/discuss/a0755916-3f1f-4e76-bdb7-fd7736754498%40tensorflow.org.

Reply all
Reply to author
Forward
0 new messages