Home | History | Annotate | Download | only in optimizers
      1 /* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
      2 
      3 Licensed under the Apache License, Version 2.0 (the "License");
      4 you may not use this file except in compliance with the License.
      5 You may obtain a copy of the License at
      6 
      7     http://www.apache.org/licenses/LICENSE-2.0
      8 
      9 Unless required by applicable law or agreed to in writing, software
     10 distributed under the License is distributed on an "AS IS" BASIS,
     11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 See the License for the specific language governing permissions and
     13 limitations under the License.
     14 ==============================================================================*/
     15 
     16 #include "tensorflow/core/grappler/optimizers/loop_optimizer.h"
     17 
     18 #include <unordered_map>
     19 #include <unordered_set>
     20 
     21 #include "tensorflow/core/framework/op.h"
     22 #include "tensorflow/core/grappler/costs/graph_properties.h"
     23 #include "tensorflow/core/grappler/grappler_item.h"
     24 #include "tensorflow/core/grappler/op_types.h"
     25 #include "tensorflow/core/lib/core/errors.h"
     26 #include "tensorflow/core/lib/core/stringpiece.h"
     27 #include "tensorflow/core/lib/strings/strcat.h"
     28 
     29 namespace tensorflow {
     30 namespace grappler {
     31 
     32 Status LoopOptimizer::Optimize(Cluster* cluster, const GrapplerItem& item,
     33                                GraphDef* optimized_graph) {
     34   *optimized_graph = item.graph;
     35 
     36   return Status::OK();
     37 }
     38 
     39 void LoopOptimizer::Feedback(Cluster* /*cluster*/, const GrapplerItem& /*item*/,
     40                              const GraphDef& /*optimized_graph*/,
     41                              double /*result*/) {
     42   // Nothing to do for LoopOptimizer.
     43 }
     44 
     45 }  // end namespace grappler
     46 }  // end namespace tensorflow
     47