- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for variable_node (0.26 sec)
-
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/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) -
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) -
src/text/template/parse/parse_test.go
if err != nil { b.Fatal(err) } } } var sinkv, sinkl string func BenchmarkVariableString(b *testing.B) { v := &VariableNode{ Ident: []string{"$", "A", "BB", "CCC", "THIS_IS_THE_VARIABLE_BEING_PROCESSED"}, } b.ResetTimer() b.ReportAllocs() for i := 0; i < b.N; i++ { sinkv = v.String() } if sinkv == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 21:59:12 UTC 2024 - 24K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py
""" variable_nodes = {} for var_node in filter(_is_variable, graph_def.node): shared_name = str(var_node.attr['shared_name'].s, encoding='utf-8') variable_nodes[shared_name] = var_node for func in graph_def.library.function: for var_node in filter(_is_variable, func.node_def): variable_nodes[shared_name] = var_node return variable_nodes
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 235.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Tree", Type, 0}, {"Tree.Mode", Field, 16}, {"Tree.Name", Field, 0}, {"Tree.ParseName", Field, 1}, {"Tree.Root", Field, 0}, {"VariableNode", Type, 0}, {"VariableNode.Ident", Field, 0}, {"VariableNode.NodeType", Field, 0}, {"VariableNode.Pos", Field, 1}, {"WithNode", Type, 0}, {"WithNode.BranchNode", Field, 0}, }, "time": { {"(*Location).String", Method, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)