taki0112 / Densenet-Tensorflow

Simple Tensorflow implementation of Densenet using Cifar10, MNIST
MIT License
506 stars 196 forks source link

The graph couldn't be sorted in topological order. #22

Open bittergourd1224 opened 5 years ago

bittergourd1224 commented 5 years ago

Hi there! I appreciated a lot for providing this tensorflow implementation of densenet. But when I running it on my own dataset, some warnings/errors appear and I don't know why. And I think they somehow affect the training process and results. I searched this on stackoverflow and only found limited answers, including https://stackoverflow.com/questions/52607063/tensorflow-warning-the-graph-couldnt-be-sorted-in-topological-order. The answer says it's related with the design of graph. I'm kind of confused. Could you help me figure this out?

The warnings/errors: E tensorflow/core/grappler/optimizers/dependency_optimizer.cc:697] Iteration = 0, topological sort failed with message: The graph couldn't be sorted in topological order. 2019-07-02 15:08:43.119749: E tensorflow/core/grappler/optimizers/dependency_optimizer.cc:697] Iteration = 1, topological sort failed with message: The graph couldn't be sorted in topological order. 2019-07-02 15:08:44.691616: E tensorflow/core/grappler/optimizers/meta_optimizer.cc:502] remapper failed: Invalid argument: The graph couldn't be sorted in topological order. 2019-07-02 15:08:44.828751: E tensorflow/core/grappler/optimizers/meta_optimizer.cc:502] arithmetic_optimizer failed: Invalid argument: The graph couldn't be sorted in topological order. 2019-07-02 15:08:44.939032: E tensorflow/core/grappler/optimizers/dependency_optimizer.cc:697] Iteration = 0, topological sort failed with message: The graph couldn't be sorted in topological order. 2019-07-02 15:08:45.096445: E tensorflow/core/grappler/optimizers/dependency_optimizer.cc:697] Iteration = 1, topological sort failed with message: The graph couldn't be sorted in topological order.