tf_1.8_xla_doc
zero_sized_hlo_elimination.h
1 /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
2 Licensed under the Apache License, Version 2.0 (the "License");
3 you may not use this file except in compliance with the License.
4 You may obtain a copy of the License at
5  http://www.apache.org/licenses/LICENSE-2.0
6 Unless required by applicable law or agreed to in writing, software
7 distributed under the License is distributed on an "AS IS" BASIS,
8 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9 See the License for the specific language governing permissions and
10 limitations under the License.
11 ==============================================================================*/
12 #ifndef TENSORFLOW_COMPILER_XLA_SERVICE_ZERO_SIZED_HLO_ELIMINATION_H_
13 #define TENSORFLOW_COMPILER_XLA_SERVICE_ZERO_SIZED_HLO_ELIMINATION_H_
15 #include "tensorflow/compiler/xla/service/hlo_pass_interface.h"
16 namespace xla {
21 class ZeroSizedHloElimination : public HloPassInterface {
22  public:
23  StatusOr<bool> Run(HloModule* module) override;
24  tensorflow::StringPiece name() const override {
25  return "zero_sized_hlo_elimination";
26  }
27 };
28 } // namespace xla
29 #endif // TENSORFLOW_COMPILER_XLA_SERVICE_ZERO_SIZED_HLO_ELIMINATION_H_
30 
namespace for xla
Definition: client_library.cc:26
Definition: zero_sized_hlo_elimination.h:21
Definition: hlo_module.h:52