Updated the virtual cluster to return the proper error code if the simulated
authorBenoit Steiner <bsteiner@google.com>
Fri, 22 Dec 2017 20:37:14 +0000 (12:37 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 22 Dec 2017 20:40:51 +0000 (12:40 -0800)
commit673641c2d6a27fa97ee05453d671853731a4c602
treebd3dbf324d8637a4399e4859f2f07509307b06e1
parent4ff57df76b9013cf22550aac8fc66717a2d0891d
Updated the virtual cluster to return the proper error code if the simulated
peak memory usage exceeds the available memory.

PiperOrigin-RevId: 179952918
tensorflow/core/grappler/clusters/BUILD
tensorflow/core/grappler/clusters/virtual_cluster.cc
tensorflow/core/grappler/clusters/virtual_cluster_test.cc
tensorflow/core/grappler/costs/virtual_scheduler.cc
tensorflow/core/grappler/costs/virtual_scheduler.h