| 74 | }; |
| 75 | |
| 76 | bool ConvolutionVisitor::Run( |
| 77 | HloComputation* computation, |
| 78 | std::function<bool(HloInstruction*)> is_cost_viable) { |
| 79 | ConvolutionVisitor visitor(computation, is_cost_viable); |
| 80 | TF_CHECK_OK(computation->Accept(&visitor)); |
| 81 | return visitor.changed_; |
| 82 | } |
| 83 | |
| 84 | namespace { |
| 85 | Shape SwapInputOutputFeatureDims(const Shape& shape, int64 input_feature_dim, |
nothing calls this directly
no test coverage detected