torch-mlir/frontends/pytorch/csrc/c10_dispatch/debug.h

23 lines
639 B
C
Raw Normal View History

//===- debug.h --------------------------------------------------*- C++ -*-===//
//
// This file is licensed under a pytorch-style license
// See frontends/pytorch/LICENSE for license information.
//
//===----------------------------------------------------------------------===//
#include <string>
namespace torch_mlir {
/// Whether debug tracing is enabled and calls to debugTrace() are more than
/// a no-op.
bool isDebugTraceEnabled();
/// Writes a message to the debug trace log.
void debugTrace(const std::string &message);
/// Enables writing debug traces to stderr.
void enableDebugTraceToStderr();
} // namespace torch_mlir