- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for variable_node (0.58 sec)
-
tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/force_shared_name_for_resource_ops.pbtxt
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-upgrade-legacy %s -tf-output-arrays=hash_table_node,variable_node,variable_v2_node -o - | FileCheck %s node: { name: "hash_table_node" op: "HashTableV2" attr: { key: "key_dtype" value: { type: DT_INT32 } } attr: { key: "shared_name" value: { s: "" } } attr: { key: "value_dtype" value: { type: DT_FLOAT }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Aug 31 02:37:48 UTC 2021 - 5.5K bytes - Viewed (0) -
tensorflow/cc/tools/freeze_saved_model.cc
// Converts a Variable NodeDef into a Constant NodeDef. void ConvertVariableToConstant(const NodeDef& variable_node, const Tensor& variable_value, NodeDef* const_node) { const_node->set_name(variable_node.name()); const_node->set_op("Const"); (*const_node->mutable_attr())["dtype"] = variable_node.attr().at("dtype"); variable_value.AsProtoTensorContent(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 11 08:05:36 UTC 2023 - 11.9K bytes - Viewed (0) -
src/text/template/parse/node.go
} // VariableNode holds a list of variable names, possibly with chained field // accesses. The dollar sign is part of the (first) name. type VariableNode struct { NodeType Pos tr *Tree Ident []string // Variable name and fields in lexical order. } func (t *Tree) newVariable(pos Pos, ident string) *VariableNode {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 24.2K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test_util.h
// Create a variable handle with name `variable_name` on a device with name // `device_name`. TFE_TensorHandle* CreateVarHandle(TFE_Context* ctx, const tensorflow::string& device_name, const tensorflow::string& variable_name); // Create a variable with value `value` and name `variable_name` on a device // with name `device_name`.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jul 17 23:43:59 UTC 2023 - 7.7K bytes - Viewed (0) -
ci/official/requirements_updater/updater_config_repository.bzl
''' Repository rule to set some environment variables. Can be set via build parameter "--repo_env=<VARIABLE_NAME>=<value>" e.g "--repo_env=REQUIREMENTS_FILE_NAME=requirements.in" List of variables: REQUIREMENTS_FILE_NAME ''' def _updater_config_repository_impl(repository_ctx): repository_ctx.file("BUILD", "") requirements_file_name = repository_ctx.os.environ.get("REQUIREMENTS_FILE_NAME", "requirements.in") repository_ctx.file(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 31 18:17:57 UTC 2023 - 718 bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc
StringAttr device_attr = variable_v2_op->getAttrOfType<StringAttr>("device"); if (!device_attr) device_attr = builder.getStringAttr(""); StringRef variable_name = GetNodeNameFromClassAttrOrSharedNameAttr(variable_v2_op); if (variable_name.empty()) { return signalPassFailure(); } VarHandleOp var_handle_op = builder.create<VarHandleOp>( variable_v2_op.getLoc(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc
for (auto func_op : module.getOps<func::FuncOp>()) { for (auto var_handle_op : func_op.getOps<TF::VarHandleOp>()) { auto variable_name = GetVariableName(var_handle_op); if (variable_names.count(variable_name)) continue; var_ops.emplace_back(var_handle_op); variable_names.insert(variable_name); } } // Get resources from Session. auto resource_tensors_or = GetResourcesFromSession(var_ops, session);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test_util.cc
TFE_OpSetAttrShape(op, "shape", {}, 0, status); TFE_OpSetAttrString(op, "container", "localhost", 0); TFE_OpSetAttrString(op, "shared_name", variable_name.data(), variable_name.size()); if (!device_name.empty()) { TFE_OpSetDevice(op, device_name.c_str(), status); } if (TF_GetCode(status) != TF_OK) return nullptr; TFE_TensorHandle* var_handle = nullptr; int num_retvals = 1;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 22:37:46 UTC 2024 - 23.5K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test.cc
// Read the variable using `ctx_1`. This read should succeed. // 1. Create a variable on `remote_device`, using `ctx_0`. TFE_TensorHandle* handle_0 = CreateVariable(ctx_0, 1.2, remote_device, /*variable_name=*/"var2"); // 2. Wait for `var2` to be created and initialized on the worker. TF_Status* status = TF_NewStatus(); TFE_ContextAsyncWait(ctx_0, status);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 03 20:50:20 UTC 2023 - 94.6K bytes - Viewed (0) -
src/text/template/exec.go
case *parse.PipeNode: // Parenthesized pipeline. The arguments are all inside the pipeline; final must be absent. s.notAFunction(cmd.Args, final) return s.evalPipeline(dot, n) case *parse.VariableNode: return s.evalVariableNode(dot, n, cmd.Args, final) } s.at(firstWord) s.notAFunction(cmd.Args, final) switch word := firstWord.(type) { case *parse.BoolNode: return reflect.ValueOf(word.True)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 21:22:24 UTC 2024 - 32K bytes - Viewed (0)