| 584 | } |
| 585 | |
| 586 | Status RewriteBatchNode(const NodeDef& batch_node, int64 num_replicas, |
| 587 | FunctionLibraryDefinition* flib, |
| 588 | MutableGraphView* graph) { |
| 589 | if (ShouldMutateBatchSizeDirectly(batch_node, num_replicas, graph)) { |
| 590 | return MutateBatchSize(batch_node, num_replicas, graph); |
| 591 | } |
| 592 | return AppendFlatMap(batch_node, num_replicas, flib, graph); |
| 593 | } |
| 594 | |
| 595 | Status OptimizeGraph(const GrapplerItem& item, int64 num_replicas, |
| 596 | bool use_fallback, GraphDef* output); |
no test coverage detected