Home
last modified time | relevance | path

Searched refs:rets (Results 1 – 25 of 66) sorted by relevance

123

/external/tensorflow/tensorflow/core/function/
Druntime_client_test.cc177 StatusOr<ReturnValues> rets = rt.CallFunction("NullaryFunction", {}); in TEST() local
178 TF_ASSERT_OK(rets.status()); in TEST()
179 ASSERT_EQ(rets->size(), 1); in TEST()
180 ASSERT_EQ(rets->at(0)->DataType(), DT_INT32); in TEST()
181 EXPECT_EQ(IntValue(*(rets->at(0))), 1); in TEST()
189 StatusOr<ReturnValues> rets = rt.CallFunction("NullaryFunction", {}); in TEST() local
190 TF_ASSERT_OK(rets.status()); in TEST()
191 ASSERT_EQ(rets->size(), 1); in TEST()
192 ASSERT_EQ(rets->at(0)->DataType(), DT_INT32); in TEST()
193 EXPECT_EQ(IntValue(*(rets->at(0))), 1); in TEST()
[all …]
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_exit/
Dstress.c146 int rets[NSCENAR * SCALABILITY_FACTOR * FACTOR]; in main() local
176 rets[i * NSCENAR + sc] = in main()
182 if (rets[i * NSCENAR + sc] != 0) { in main()
183 UNRESOLVED(rets in main()
190 if (rets[i * NSCENAR + sc] == 0) { in main()
199 if (rets[i * NSCENAR + sc] == 0) { in main()
205 strerror(rets in main()
212 if (rets[i * NSCENAR + sc] == 0) { in main()
232 && (rets[i * NSCENAR + sc] == 0)) { in main()
/external/linux-kselftest/tools/testing/selftests/powerpc/syscalls/
Drtas_filter.c44 __be32 *rets; /* Pointer to return values in args[]. */ member
173 __be32 *rets[16]; in rtas_call() local
195 rets[i] = (__be32 *) va_arg(ap, unsigned long); in rtas_call()
204 *(rets[0]) = be32_to_cpu(args.args[nargs]); in rtas_call()
207 *(rets[i]) = args.args[nargs + i]; in rtas_call()
221 __be32 rets[1]; in test() local
227 rc = rtas_call("get-time-of-day", 0, 1, rets); in test()
234 rc = rtas_call("nvram-fetch", 0, 1, rets); in test()
252 cpu_to_be32(rmo_end - rmo_start + 1), rets); in test()
260 cpu_to_be32(4000), rets); in test()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dfunction_ops.cc250 std::vector<Tensor>* rets = new std::vector<Tensor>; in ComputeAsync() local
252 lib->Run(opts, handle, args, rets, [ctx, done, rets](const Status& status) { in ComputeAsync()
255 } else if (rets->size() != ctx->num_outputs()) { in ComputeAsync()
258 " tensor(s), but get ", rets->size(), " tensor(s) instead.")); in ComputeAsync()
260 for (size_t i = 0; i < rets->size(); ++i) { in ComputeAsync()
261 ctx->set_output(i, std::move((*rets)[i])); in ComputeAsync()
264 delete rets; in ComputeAsync()
390 auto* rets = new std::vector<Tensor>; in ComputeAsync() local
401 opts, handle, args, rets, in ComputeAsync()
402 [rets, done = std::move(done), func_name, ctx, cancel_mgr, in ComputeAsync()
[all …]
Dpartitioned_function_ops.cc259 std::vector<Tensor>* rets = new std::vector<Tensor>; in RunFunction() local
262 lib->Run(run_opts, handle, inputs, rets, in RunFunction()
263 [rets, done = std::move(done), ctx, func_name, in RunFunction()
272 for (int i = 0; i < rets->size(); ++i) { in RunFunction()
273 ctx->set_output(i, (*rets)[i]); in RunFunction()
276 delete rets; in RunFunction()
Dquantization_utils_test.cc751 int64_t rets[2]; in TestDivide64x2Pow() local
752 vst1q_s64(rets, ret); in TestDivide64x2Pow()
753 EXPECT_EQ(rets[0], ref); in TestDivide64x2Pow()
754 EXPECT_EQ(rets[1], ref); in TestDivide64x2Pow()
763 int64_t rets[2]; in TestDivide64x2PowRound() local
764 vst1q_s64(rets, shifted); in TestDivide64x2PowRound()
765 EXPECT_EQ(rets[0], ref) << "in = " << val << ", " << POW in TestDivide64x2PowRound()
766 << ", act = " << rets[0] << ", ref = " << ref; in TestDivide64x2PowRound()
767 EXPECT_EQ(rets[1], ref); in TestDivide64x2PowRound()
768 VLOG(1) << "div round: " << val << ", " << rets[0]; in TestDivide64x2PowRound()
[all …]
/external/tensorflow/tensorflow/core/common_runtime/
Dfunction_threadpool_test.cc79 const std::vector<Tensor>& args, std::vector<Tensor*> rets, in Run() argument
103 CHECK_EQ(rets.size(), out.size()); in Run()
104 for (size_t i = 0; i < rets.size(); ++i) { in Run()
105 *rets[i] = out[i]; in Run()
131 std::vector<Tensor*> rets, bool add_runner = true) { in InstantiateAndRun() argument
134 std::move(rets), add_runner); in InstantiateAndRun()
141 const std::vector<Tensor>& args, std::vector<Tensor*> rets, in InstantiateAndRun() argument
149 status = Run(flr, handle, opts, args, rets, add_runner); in InstantiateAndRun()
156 Status status2 = Run(flr, handle, opts, args, std::move(rets)); in InstantiateAndRun()
Dfunction.cc168 std::vector<Tensor>* rets, DoneCallback done) override;
174 std::vector<Tensor>* rets) override;
238 std::vector<Tensor>* rets, in Run() argument
240 base_flr_->Run(opts, handle, args, rets, std::move(done)); in Run()
251 std::vector<Tensor>* rets) { in RunSync() argument
252 return base_flr_->RunSync(std::move(opts), handle, args, rets); in RunSync()
352 std::vector<Tensor>* rets, DoneCallback done) override;
356 std::vector<Tensor>* rets) override;
450 gtl::ArraySlice<Tensor> args, std::vector<Tensor>* rets,
552 std::vector<Tensor>* rets = new std::vector<Tensor>; in ComputeAsync() local
[all …]
Dprocess_function_library_runtime.cc430 std::vector<FunctionRet>* rets, std::vector<Tensor>* tensors, in TensorsToFunctionRetsDoneCallback() argument
432 return [rets, tensors, done = std::move(done)](const Status& s) { in TensorsToFunctionRetsDoneCallback()
435 rets->push_back(t); in TensorsToFunctionRetsDoneCallback()
1262 FunctionLibraryRuntime::Handle outer_handle, std::vector<FunctionRet>* rets, in RunMultiDeviceSync() argument
1304 rets->resize(data->num_outputs_); in RunMultiDeviceSync()
1331 (*rets)[comp_data.ret_indices[i]] = comp_tensor_rets[i]; in RunMultiDeviceSync()
1357 FunctionLibraryRuntime::Handle outer_handle, std::vector<FunctionRet>* rets, in RunMultiDeviceAsync() argument
1404 rets->resize(data->num_outputs_); in RunMultiDeviceAsync()
1406 auto component_fn_callback = [comp_rets, rets, comp_data, refcounted_done, in RunMultiDeviceAsync()
1425 (*rets)[comp_data.ret_indices[i]] = (*comp_rets)[i]; in RunMultiDeviceAsync()
[all …]
Dprocess_function_library_runtime.h193 std::vector<Tensor>* rets,
201 const FunctionArgsInterface& args, std::vector<FunctionRet>* rets,
206 gtl::ArraySlice<Tensor> args, std::vector<Tensor>* rets) const;
406 std::vector<FunctionRet>* rets,
443 FunctionLibraryRuntime::Handle handle, std::vector<FunctionRet>* rets,
450 FunctionLibraryRuntime::Handle handle, std::vector<FunctionRet>* rets,
/external/tensorflow/tensorflow/core/data/
Dcaptured_function.cc129 std::vector<Tensor>* rets) { in RunShortCircuit() argument
132 rets->reserve(info.indices.size()); in RunShortCircuit()
135 rets->push_back(args[info.indices[i]]); in RunShortCircuit()
140 rets->push_back(*captured_input); in RunShortCircuit()
148 std::vector<Tensor>* rets) { in RunShortCircuit() argument
151 rets->reserve(info.indices.size()); in RunShortCircuit()
155 rets->push_back(std::move(args[info.indices[i]])); in RunShortCircuit()
157 rets->push_back(args[info.indices[i]]); in RunShortCircuit()
163 rets->push_back(*captured_input); in RunShortCircuit()
781 std::vector<Tensor>* rets) const { in Run()
[all …]
Dcaptured_function.h243 std::vector<Tensor>* rets) const;
253 std::vector<Tensor>* rets,
261 std::vector<Tensor>* rets) const;
271 std::vector<Tensor>* rets,
281 std::vector<Tensor>* rets);
291 std::vector<Tensor>* rets,
/external/tensorflow/tensorflow/core/distributed_runtime/eager/
Dcluster_function_library_runtime.cc117 std::vector<Tensor>* rets, FunctionLibraryRuntime::DoneCallback done) { in Run() argument
124 [rets, function_rets, done = std::move(done)](const Status& s) { in Run()
129 rets->push_back(std::get<Tensor>(t)); in Run()
146 gtl::ArraySlice<FunctionArg> args, std::vector<FunctionRet>* rets, in Run() argument
225 [request, response, rets, call_opts, cm, token, in Run()
240 rets->push_back(shape); in Run()
245 rets->push_back(std::move(t)); in Run()
/external/linux-kselftest/tools/testing/selftests/net/
Dudpgro_fwd.sh125 local rets=$?
126 if [ ${rets} -ne 0 ] || [ ${retc} -ne 0 ]; then
127 echo " fail client exit code $retc, server $rets"
174 local rets=$?
175 if [ ${rets} -ne 0 ] || [ ${retc} -ne 0 ]; then
176 echo " fail client exit code $retc, server $rets"
/external/liburing/test/
Dsq-poll-share.c77 int rets[NR_RINGS]; in main() local
125 rets[i] = ret; in main()
128 if (wait_io(&rings[i], rets[i])) in main()
Dsq-poll-dup.c75 int i, rets[NR_RINGS]; in do_io() local
83 rets[i] = ret; in do_io()
86 if (wait_io(&rings[i], rets[i])) in do_io()
/external/tensorflow/tensorflow/lite/g3doc/examples/convert/
Doperation_fusion.md219 rets = zeros([num, embedding dim])
221 rets[i, :] = embs[ids_vec[i], :]
222 return rets
233 rets = inplace_ops.empty([num] + emb_shape_suf, py_utils.FPropDtype(p))
235 def EmbFpropLoop(i, embs, ids_vec, rets):
240 # rets[i] = row
241 rets = inplace_ops.alias_inplace_update(rets, [i], row)
242 return embs, ids_vec, rets
244 _, _, rets = functional_ops.For(
248 inputs=[embs, ids_vec, rets],
[all …]
/external/linux-kselftest/tools/testing/selftests/net/mptcp/
Dmptcp_sockopt.sh197 rets=$?
199 if [ ${rets} -ne 0 ] || [ ${retc} -ne 0 ]; then
200 echo " client exit code $retc, server $rets" 1>&2
221 rets=$?
223 if [ $retc -eq 0 ] && [ $rets -eq 0 ];then
/external/golang-protobuf/internal/filedesc/
Ddesc_test.go539 var rets []reflect.Value
553 rets = fnc.Call([]reflect.Value{arg})
555 rets = rv.MethodByName(s).Call(nil)
559 if len(rets) == 2 {
560 if rets[0].IsNil() && rets[1].Bool() {
563 if !rets[0].IsNil() && !rets[1].Bool() {
570 checkAccessors(t, p, rets[0], want)
574 got := rets[0].Interface()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/ops/
Dvariable_ops.cc114 std::vector<Tensor>* rets = new std::vector<Tensor>(); in ReadVariableHelper() local
115 std::unique_ptr<std::vector<Tensor>> outputs_wrapper(rets); in ReadVariableHelper()
118 TF_RETURN_IF_ERROR(lib_clone->RunSync(opts, func_handle, args, rets)); in ReadVariableHelper()
132 auto ret = cudaMemcpyAsync(tensor_flat.data(), rets->at(0).flat<T>().data(), in ReadVariableHelper()
133 rets->at(0).NumElements() * sizeof(T), in ReadVariableHelper()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dcluster_function_library_runtime.cc259 std::vector<Tensor>* rets, FunctionLibraryRuntime::DoneCallback done) { in Run() argument
295 [call_options, req, resp, rets, recv_keys, done](const Status& status) { in Run()
322 rets->push_back(t); in Run()
335 gtl::ArraySlice<FunctionArg> args, std::vector<FunctionRet>* rets, in Run() argument
350 [rets, ret_tensors, done = std::move(done)](const Status& s) { in Run()
353 rets->push_back(t); in Run()
Dcluster_function_library_runtime_test.cc77 const std::vector<Tensor>& args, std::vector<Tensor*> rets) { in InstantiateAndRun() argument
103 CHECK_EQ(rets.size(), out.size()); in InstantiateAndRun()
104 for (size_t i = 0; i < rets.size(); ++i) { in InstantiateAndRun()
105 *rets[i] = out[i]; in InstantiateAndRun()
/external/tensorflow/tensorflow/python/eager/
Dremote_test.py107 rets = remote_output(constant_op.constant([1]))
108 self.assertAllEqual(rets[0].numpy(), [2])
109 self.assertAllEqual(rets[1].numpy(), 2)
110 self.assertEqual(rets[0].backing_device,
112 self.assertEqual(rets[1].backing_device,
553 rets = remote_output(constant_op.constant([1]))
554 self.assertEqual(rets[0].backing_device,
556 self.assertEqual(rets[1].backing_device,
558 self.assertAllEqual(rets[0].numpy(), [2])
559 self.assertAllEqual(rets[1].numpy(), 2)
/external/python/cpython2/Lib/
Dpoplib.py206 rets = retval.split()
207 if self._debugging: print '*stat*', repr(rets)
208 numMessages = int(rets[1])
209 sizeMessages = int(rets[2])
/external/python/cpython3/Lib/
Dpoplib.py227 rets = retval.split()
228 if self._debugging: print('*stat*', repr(rets))
229 numMessages = int(rets[1])
230 sizeMessages = int(rets[2])

123