- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 67 for _Attr_name (0.14 sec)
-
tensorflow/cc/framework/cc_op_gen.cc
continue; } const string attr_name = api_def_attr.has_default_value() ? strings::StrCat("attrs.", api_def_attr.rename_to(), "_") : AvoidCPPKeywords(api_def_attr.rename_to()); strings::StrAppend(&body, spaces, ".Attr(\"", graph_attr.name(), "\", ", attr_name, ")\n"); } strings::StrAppend(&body, " ;\n");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 27 17:22:47 UTC 2023 - 17K bytes - Viewed (0) -
tensorflow/compiler/jit/extract_outside_compilation_pass.cc
} else if (n->IsIfNode()) { for (const string& attr_name : std::vector<string>{"then_branch", "else_branch"}) { NameAttrList branch_func; TF_RETURN_IF_ERROR(GetNodeAttr(n->attrs(), attr_name, &branch_func)); (*branch_func.mutable_attr())["_device_ordinal"] = device_ordinal_value; n->ClearAttr(attr_name); n->AddAttr(attr_name, branch_func); } } else if (n->IsWhileNode()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 104.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_ops.td
all_attrs.insert(attr.getName().strref()); } for (const auto& operand : llvm::enumerate(getArgumentTypes())) { if (auto attr_name = getArgAttrOfType<StringAttr>( operand.index(), kAttrArgumentNameAttr)) { all_attrs.insert(attr_name.getValue()); } } return all_attrs; } }]; let hasVerifier = 1; let hasCustomAssemblyFormat = 1; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 10:54:29 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/c/c_test_util.cc
TF_DeleteBuffer(buffer); TF_DeleteStatus(s); return ret; } bool GetAttrValue(TF_Operation* oper, const char* attr_name, tensorflow::AttrValue* attr_value, TF_Status* s) { TF_Buffer* buffer = TF_NewBuffer(); TF_OperationGetAttrValueProto(oper, attr_name, buffer, s); bool ret = TF_GetCode(s) == TF_OK; if (ret) ret = attr_value->ParseFromArray(buffer->data, buffer->length);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Oct 15 03:16:52 UTC 2021 - 17.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
llvm::StringRef attr_name) { return attr_name.compare(kOutputShapesAttrName) == 0 && attr_value.value_case() == AttrValue::kList; } bool IsResourceOutputShapesAttribute(const AttrValue& attr_value, llvm::StringRef attr_name) { if (attr_name == "_handle_dtypes" || attr_name == "_handle_shapes")
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0) -
tensorflow/c/kernels_experimental.cc
const char* attr_name, int64_t* dims, size_t num_dims, TF_Status* status) { ::tensorflow::TensorShape shape; auto* cc_ctx = reinterpret_cast<::tensorflow::OpKernelConstruction*>(ctx); ::tensorflow::Status s = cc_ctx->GetAttr(attr_name, &shape); ::tensorflow::Set_TF_Status_from_Status(status, s);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 06:12:29 UTC 2024 - 30.9K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
func_ = TF_FunctionImportFunctionDef(buf.data(), buf.size(), s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); } void GetAttr(const char* attr_name, AttrValue* out_attr) { TF_Buffer* attr_buf = TF_NewBuffer(); TF_FunctionGetAttrValueProto(func_, attr_name, attr_buf, s_); ASSERT_TRUE(out_attr->ParseFromArray(attr_buf->data, attr_buf->length)); TF_DeleteBuffer(attr_buf); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc
kEmbeddingPipelining, "_xla_outside_compilation", "device"}; for (const auto& attr_name : attr_names) { if (!global_iter_id_op->hasAttr(attr_name)) continue; offset->setAttr(attr_name, global_iter_id_op->getAttr(attr_name)); new_global_iter_id->setAttr(attr_name, global_iter_id_op->getAttr(attr_name)); } // Make the next function to get inlined use a different offset.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 92.9K bytes - Viewed (0) -
tensorflow/compiler/jit/kernels/xla_ops.cc
return *func; } std::vector<int> VectorAttr(OpKernelConstruction* ctx, absl::string_view attr_name) { std::vector<int> vec; OP_REQUIRES_OK_RETURN(ctx, std::vector<int>(), ctx->GetAttr(attr_name, &vec)); return vec; } bool MustCompileAttr(OpKernelConstruction* ctx) { bool must_compile; OP_REQUIRES_OK_RETURN(ctx, false,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 22:46:36 UTC 2024 - 41.4K bytes - Viewed (0) -
tensorflow/compiler/jit/mark_for_compilation_pass.cc
return std::nullopt; } // Returns true iff the attribute `attr_name` is attached to either the node or // to it's callee. static bool GetNodeOrFuncAttr(Node* node, FunctionLibraryDefinition* flib_def, const char* attr_name) { bool out = false; bool attr_value; if (TryGetNodeAttr(node->attrs(), attr_name, &attr_value)) { out |= attr_value; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 12:19:41 UTC 2024 - 85.3K bytes - Viewed (0)