Home
last modified time | relevance | path

Searched refs:vars_ (Results 1 – 14 of 14) sorted by relevance

/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_service.cc48 vars_["classname"] = descriptor_->name(); in ServiceGenerator()
49 vars_["full_name"] = descriptor_->full_name(); in ServiceGenerator()
51 vars_["dllexport"] = ""; in ServiceGenerator()
53 vars_["dllexport"] = options.dllexport_decl + " "; in ServiceGenerator()
61 printer->Print(vars_, in GenerateDeclarations()
70 printer->Print(vars_, in GenerateInterface()
79 printer->Print(vars_, in GenerateInterface()
104 printer->Print(vars_, in GenerateInterface()
113 printer->Print(vars_, in GenerateStubDefinition()
119 printer->Print(vars_, in GenerateStubDefinition()
[all …]
Dcpp_service.h108 map<string, string> vars_; variable
/external/tensorflow/tensorflow/contrib/eager/python/examples/revnet/
Drevnet_test.py107 vars_ = self.model.trainable_variables
109 self.assertTrue(isinstance(vars_, list))
110 self.assertEqual(len(grads), len(vars_))
111 for grad, var in zip(grads, vars_):
118 grads_true = tape.gradient(loss_true, vars_)
135 vars_ = self.model.trainable_variables
137 self.assertTrue(isinstance(vars_, list))
138 self.assertEqual(len(grads), len(vars_))
139 for grad, var in zip(grads, vars_):
Dblocks_test.py153 vars_ = block.trainable_variables
155 grads = tape.gradient(y, [x] + vars_, output_gradients=dy)
182 vars_ = block.trainable_variables
184 grads = tape.gradient(y, [x] + vars_, output_gradients=dy)
Dmain.py32 def apply_gradients(optimizer, grads, vars_, global_step=None): argument
34 optimizer.apply_gradients(zip(grads, vars_), global_step=global_step)
/external/tensorflow/tensorflow/core/kernels/
Dtraining_op_helpers.h78 : vars_(std::move(vars)), in VariableInputLockHolder()
83 : vars_(std::move(other.vars_)), in VariableInputLockHolder()
91 for (Var* var : vars_) { in ~VariableInputLockHolder()
97 std::vector<Var*> vars_;
/external/bcc/src/cc/frontends/b/
Dcodegen_llvm.cc268 auto it = vars_.find(n->decl_); in visit_ident_expr_node()
269 …if (it == vars_.end()) return mkstatus_(n, "Cannot locate variable %s in vars_ table", n->c_str()); in visit_ident_expr_node()
278 auto it = vars_.find(n->decl_); in visit_ident_expr_node()
279 …if (it == vars_.end()) return mkstatus_(n, "Cannot locate variable %s in vars_ table", n->c_str()); in visit_ident_expr_node()
285 auto it = vars_.find(n->decl_); in visit_ident_expr_node()
286 …if (it == vars_.end()) return mkstatus_(n, "Cannot locate variable %s in vars_ table", n->c_str()); in visit_ident_expr_node()
302 auto it = vars_.find(n->decl_); in visit_ident_expr_node()
303 …if (it == vars_.end()) return mkstatus_(n, "Cannot locate variable %s in vars_ table", n->c_str()); in visit_ident_expr_node()
353 auto it = vars_.find(*decl); in lookup_var()
354 if (it == vars_.end()) return mkstatus_(n, "unable to find %s memory location", name.c_str()); in lookup_var()
[all …]
Dcodegen_llvm.h123 map<VariableDeclStmtNode *, llvm::Value *> vars_; variable
/external/tensorflow/tensorflow/contrib/optimizer_v2/
Dgradient_descent_test.py163 vars_ = [variables.Variable([v], dtype=dtype) for v in values]
164 grads_and_vars = opt.compute_gradients(vars_[0] + vars_[1], vars_)
/external/tensorflow/tensorflow/python/training/
Dgradient_descent_test.py200 vars_ = [variables.Variable([v], dtype=dtype) for v in values]
201 grads_and_vars = opt.compute_gradients(vars_[0] + vars_[1], vars_)
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Doptimizers.py33 from tensorflow.python.ops import variables as vars_ unknown
235 variables = vars_.trainable_variables()
/external/tensorflow/tensorflow/python/keras/optimizer_v2/
Dgradient_descent_test.py198 vars_ = [variables.Variable([v], dtype=dtype) for v in values]
199 loss = lambda: vars_[0] + vars_[1] # pylint: disable=cell-var-from-loop
200 grads_and_vars = opt._compute_gradients(loss, vars_)
/external/tensorflow/tensorflow/python/tpu/
Dtpu.py167 def get_replicated_var_handle(self, name, vars_): argument
196 [v.handle for v in vars_], name=name + "/handle")
/external/tensorflow/tensorflow/python/kernel_tests/
Dcontrol_flow_ops_py_test.py3722 vars_ = variables.global_variables()
3723 grads = linalg_ops.norm(gradients_impl.gradients(r, vars_)[0])
3725 result = gradients_impl.gradients(z, vars_)[0]