tf_1.8_xla_doc
dot_decomposer.h
Go to the documentation of this file.
1 
3 /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7  http://www.apache.org/licenses/LICENSE-2.0
8 Unless required by applicable law or agreed to in writing, software
9 distributed under the License is distributed on an "AS IS" BASIS,
10 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 See the License for the specific language governing permissions and
12 limitations under the License.
13 ==============================================================================*/
14 #ifndef TENSORFLOW_COMPILER_XLA_SERVICE_DOT_DECOMPOSER_H_
15 #define TENSORFLOW_COMPILER_XLA_SERVICE_DOT_DECOMPOSER_H_
17 #include "tensorflow/compiler/xla/service/hlo_pass_interface.h"
18 namespace xla {
24 class DotDecomposer : public HloPassInterface {
25  public:
26  // Decomposes batch Dot operations when 'decompose_batch_dot' is true.
27  DotDecomposer(bool decompose_batch_dot = true)
28  : decompose_batch_dot_(decompose_batch_dot) {}
29  ~DotDecomposer() = default;
30  tensorflow::StringPiece name() const override { return "dot_decomposer"; }
37  StatusOr<bool> Run(HloModule* module) override;
38  private:
43 };
44 } // namespace xla
45 #endif // TENSORFLOW_COMPILER_XLA_SERVICE_DOT_DECOMPOSER_H_
46 
bool decompose_batch_dot_
Definition: dot_decomposer.h:42
StatusOr< bool > Run(HloModule *module) override
Entry point of xla::DotDecomposer
Definition: dot_decomposer.cc:148
Definition: dot_decomposer.h:24
namespace for xla
Definition: client_library.cc:26
Definition: hlo_module.h:52