• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 The TensorFlow Runtime Authors
3  *
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  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef TENSORFLOW_COMPILER_MLIR_TFRT_JIT_DEFAULT_TF_JITRT_QUERY_OF_DEATH_H_
18 #define TENSORFLOW_COMPILER_MLIR_TFRT_JIT_DEFAULT_TF_JITRT_QUERY_OF_DEATH_H_
19 
20 #include "absl/strings/string_view.h"
21 
22 namespace tensorflow {
23 
24 // Note: this class is just a no-op interface. An actual implementation would
25 // track "live" JitRt queries through the lifetime of this object.
26 // On a crash, this can help find the originating "query of death".
27 class TfJitRtQueryOfDeathLogger {
28  public:
TfJitRtQueryOfDeathLogger(absl::string_view kernel_name,absl::string_view kernel_serialized_operation,absl::string_view operands)29   TfJitRtQueryOfDeathLogger(absl::string_view kernel_name,
30                             absl::string_view kernel_serialized_operation,
31                             absl::string_view operands) {}
32 };
33 
34 }  // namespace tensorflow
35 
36 #endif  // TENSORFLOW_COMPILER_MLIR_TFRT_JIT_DEFAULT_TF_JITRT_QUERY_OF_DEATH_H_
37