- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TFStatement (0.12 sec)
-
tensorflow/c/experimental/ops/gen/cpp/renderers/op_implementation_renderer.cc
Statement("AbstractOperationPtr $0(ctx->CreateOperation())", op_.VariableName()); TFStatement(Call(op_.VariableName(), "Reset", {op_.OpNameString(), "raw_device_name"})); TFStatement(Call("MaybeSetOpName", {op_.VariableName() + ".get()", "name"})); // Set each input for (const ArgView& ar : op_.Inputs()) { TFStatement(Call(op_.VariableName(), ar.SetterMethod(), ar.SetterArgs())); } // Set each attribute
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 3.7K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/renderers/renderer.h
// Indent and append a call to a TF method returning a Status to check. // Note: do *not* include a trailing semicolon in the statement text. Renderer &TFStatement(const string &text); template <typename... Args> Renderer TFStatement(absl::string_view text, const Args &...args) { return TFStatement(absl::Substitute(text, args...)); } // Indent and append a C++ single-line style comment (using '//').
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 3.7K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/renderers/renderer.cc
context_.code.AddLineWithIndent(text); } else { context_.code.AddLineWithIndent(absl::StrCat(text, ";")); } return *this; } Renderer& Renderer::TFStatement(const string& text) { return Statement(absl::Substitute("TF_RETURN_IF_ERROR($0)", text)); } Renderer& Renderer::CommentLine(const string& text) { context_.code.AddLineWithIndent(absl::StrCat("// ", text));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 2.6K bytes - Viewed (0)