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

Function ValidateNoInline

tensorflow/core/common_runtime/function.cc:1689–1697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1687namespace {
1688
1689Status ValidateNoInline(const FunctionBody* fbody) {
1690 const auto attr = AttrSlice(&fbody->fdef.attr());
1691 bool noinline = false;
1692 if (TryGetNodeAttr(attr, kNoInlineAttr, &noinline) && noinline) {
1693 return errors::InvalidArgument(
1694 "Can't inline function marked with '_noinline'");
1695 }
1696 return Status::OK();
1697}
1698
1699using OutputControlSrc = InlineFunctionBodyOptions::OutputControlSource;
1700

Callers 1

ValidateInliningFunction · 0.85

Calls 3

AttrSliceClass · 0.85
InvalidArgumentFunction · 0.85
attrMethod · 0.80

Tested by

no test coverage detected