MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util_test.cc:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace {
28
29TEST(DumpMlirModuleTest, NoEnvPrefix) {
30 mlir::MLIRContext context;
31 mlir::OwningModuleRef module_ref =
32 mlir::ModuleOp::create(mlir::UnknownLoc::get(&context));
33 unsetenv("TF_DUMP_GRAPH_PREFIX");
34
35 std::string filepath = DumpMlirOpToFile("module", module_ref.get());
36 EXPECT_EQ(filepath, "(TF_DUMP_GRAPH_PREFIX not specified)");
37}
38
39TEST(DumpMlirModuleTest, LogInfo) {
40 mlir::MLIRContext context;

Callers

nothing calls this directly

Calls 11

createFunction · 0.85
DumpMlirOpToFileFunction · 0.85
TmpDirFunction · 0.85
DefaultFunction · 0.85
ReadFileToStringFunction · 0.85
c_strMethod · 0.80
getFunction · 0.50
unsetenvFunction · 0.50
setenvFunction · 0.50
getMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected