/external/tensorflow/tensorflow/core/kernels/ |
D | cwise_ops_common.h | 78 template <typename Device, typename Functor> 81 typedef typename Functor::in_type Tin; // Input scalar data type. 82 typedef typename Functor::out_type Tout; // Output scalar data type. 93 bool* const error_ptr = Functor::has_errors ? &error : nullptr; in Compute() 102 functor::BinaryFunctor<Device, Functor, 1>()( in Compute() 106 if (Functor::has_errors && error) { in Compute() 116 functor::BinaryFunctor<Device, Functor, 1>().Left( in Compute() 120 if (Functor::has_errors && error) { in Compute() 129 functor::BinaryFunctor<Device, Functor, 1>().Right( in Compute() 133 if (Functor::has_errors && error) { in Compute() [all …]
|
D | cwise_ops_gpu_common.cu.h | 40 template <typename Functor> 41 struct UnaryFunctor<GPUDevice, Functor> { 42 void operator()(const GPUDevice& d, typename Functor::tout_type out, 43 typename Functor::tin_type in) { 44 To32Bit(out).device(d) = To32Bit(in).unaryExpr(typename Functor::func()); 49 template <typename Functor, int NDIMS, bool has_errors> 50 struct BinaryFunctor<GPUDevice, Functor, NDIMS, has_errors> { 51 void operator()(const GPUDevice& d, typename Functor::tout_type out, 52 typename Functor::tin_type in0, 53 typename Functor::tin_type in1, bool* error) { [all …]
|
D | cwise_ops_gpu_gradients.cu.h | 41 template <typename Functor> 42 struct SimpleBinaryFunctor<GPUDevice, Functor> { 43 void operator()(const GPUDevice& d, typename Functor::tout_type out, 44 typename Functor::tin_type in1, 45 typename Functor::tin_type in2) { 47 To32Bit(in1).binaryExpr(in2, typename Functor::func());
|
D | cwise_ops_gradients.h | 172 template <typename Device, typename Functor> 174 void operator()(const Device& d, typename Functor::tout_type out, 175 typename Functor::tin_type in0, 176 typename Functor::tin_type in1); 182 template <typename Functor> 183 struct SimpleBinaryFunctor<CPUDevice, Functor> { 184 void operator()(const CPUDevice& d, typename Functor::tout_type out, 185 typename Functor::tin_type in0, 186 typename Functor::tin_type in1) { 187 out.device(d) = in0.binaryExpr(in1, typename Functor::func());
|
D | reduction_ops_common.h | 169 typedef functor::ReduceFunctor<Device, Reducer> Functor; 178 Functor::Reduce(ctx, tmp_out.flat<T>(), 196 Functor::FillIdentity(d, tmp_out.flat<T>(), reducer); 199 Functor::Reduce(ctx, helper.out<T, 0>(&tmp_out), helper.in<T, 1>(data), 203 Functor::Reduce(ctx, helper.out<T, 1>(&tmp_out), helper.in<T, 2>(data), 207 Functor::Reduce(ctx, helper.out<T, 1>(&tmp_out), helper.in<T, 2>(data), 212 Functor::Reduce(ctx, helper.out<T, 1>(&tmp_out), helper.in<T, 3>(data), 216 Functor::Reduce(ctx, helper.out<T, 2>(&tmp_out), helper.in<T, 3>(data), 233 Functor::Reduce(ctx, tmp_out.flat<T>(),
|
/external/eigen/unsupported/Eigen/src/NumericalDiff/ |
D | NumericalDiff.h | 39 typedef _Functor Functor; typedef 40 typedef typename Functor::Scalar Scalar; 41 typedef typename Functor::InputType InputType; 42 typedef typename Functor::ValueType ValueType; 43 typedef typename Functor::JacobianType JacobianType; 45 NumericalDiff(Scalar _epsfcn=0.) : Functor(), epsfcn(_epsfcn) {} in Functor() function 46 NumericalDiff(const Functor& f, Scalar _epsfcn=0.) : Functor(f), epsfcn(_epsfcn) {} in Functor() function 50 NumericalDiff(const T0& a0) : Functor(a0), epsfcn(0) {} in NumericalDiff() 52 NumericalDiff(const T0& a0, const T1& a1) : Functor(a0, a1), epsfcn(0) {} in NumericalDiff() 54 NumericalDiff(const T0& a0, const T1& a1, const T2& a2) : Functor(a0, a1, a2), epsfcn(0) {} in NumericalDiff() [all …]
|
/external/eigen/unsupported/Eigen/src/AutoDiff/ |
D | AutoDiffJacobian.h | 16 template<typename Functor> class AutoDiffJacobian : public Functor 19 AutoDiffJacobian() : Functor() {} in AutoDiffJacobian() 20 AutoDiffJacobian(const Functor& f) : Functor(f) {} in AutoDiffJacobian() 25 AutoDiffJacobian(const T& ...Values) : Functor(Values...) {} in AutoDiffJacobian() 28 AutoDiffJacobian(const T0& a0) : Functor(a0) {} in AutoDiffJacobian() 30 AutoDiffJacobian(const T0& a0, const T1& a1) : Functor(a0, a1) {} in AutoDiffJacobian() 32 AutoDiffJacobian(const T0& a0, const T1& a1, const T2& a2) : Functor(a0, a1, a2) {} in AutoDiffJacobian() 35 typedef typename Functor::InputType InputType; 36 typedef typename Functor::ValueType ValueType; 73 Functor::operator()(x, v, Params...); in operator() [all …]
|
/external/libchrome/base/ |
D | bind_internal.h | 57 template <typename Functor, typename BoundArgsTuple, typename SFINAE = void> 62 template <typename Functor, typename SFINAE = void> 324 template <typename Functor, typename SFINAE = void> 361 template <typename Functor, typename SFINAE> 383 template <typename Functor> 384 struct FunctorTraits<Functor, 385 std::enable_if_t<IsCallableObject<Functor>::value && 386 std::is_empty<Functor>::value>> { 387 using RunType = ExtractCallableRunType<Functor>; 588 template <typename Functor> [all …]
|
D | bind.h | 183 template <typename Functor, typename... Args> 184 inline OnceCallback<MakeUnboundRunType<Functor, Args...>> 185 BindOnce(Functor&& functor, Args&&... args) { 186 static_assert(!internal::IsOnceCallback<std::decay_t<Functor>>() || 187 (std::is_rvalue_reference<Functor&&>() && 188 !std::is_const<std::remove_reference_t<Functor>>()), 195 using Helper = internal::BindTypeHelper<Functor, Args...>; 207 using BindState = internal::MakeBindStateType<Functor, Args...>; 208 using UnboundRunType = MakeUnboundRunType<Functor, Args...>; 221 std::forward<Functor>(functor), [all …]
|
/external/libchrome/testing/ |
D | gmock_mutant.h | 116 template <typename Functor> 117 CallbackToFunctorHelper<typename Functor::RunType> CreateFunctor( in CreateFunctor() 118 Functor functor) { in CreateFunctor() 122 template <typename Functor, typename... BoundArgs> 123 CallbackToFunctorHelper<base::MakeUnboundRunType<Functor, BoundArgs...>> 124 CreateFunctor(Functor functor, const BoundArgs&... args) { in CreateFunctor()
|
/external/llvm-project/libcxx/test/std/utilities/function.objects/func.invoke/ |
D | invoke.pass.cpp | 83 template <class Signature, class Expect, class Functor> 84 void test_b12(Functor&& f) { in test_b12() 94 std::invoke(func_ptr, std::forward<Functor>(f), std::move(arg)) in test_b12() 99 typedef typename std::result_of<ClassFunc&&(Functor&&, NonCopyable&&)>::type in test_b12() 105 std::invoke(func_ptr, std::forward<Functor>(f), std::move(arg)); in test_b12() 109 template <class Expect, class Functor> 110 void test_b34(Functor&& f) { in test_b34() 117 std::invoke(func_ptr, std::forward<Functor>(f)) in test_b34() 122 typedef typename std::result_of<ClassFunc&&(Functor&&)>::type in test_b34() 128 std::invoke(func_ptr, std::forward<Functor>(f)); in test_b34() [all …]
|
/external/libcxx/test/std/utilities/function.objects/func.invoke/ |
D | invoke.pass.cpp | 81 template <class Signature, class Expect, class Functor> 82 void test_b12(Functor&& f) { in test_b12() 92 std::invoke(func_ptr, std::forward<Functor>(f), std::move(arg)) in test_b12() 97 typedef typename std::result_of<ClassFunc&&(Functor&&, NonCopyable&&)>::type in test_b12() 103 std::invoke(func_ptr, std::forward<Functor>(f), std::move(arg)); in test_b12() 107 template <class Expect, class Functor> 108 void test_b34(Functor&& f) { in test_b34() 115 std::invoke(func_ptr, std::forward<Functor>(f)) in test_b34() 120 typedef typename std::result_of<ClassFunc&&(Functor&&)>::type in test_b34() 126 std::invoke(func_ptr, std::forward<Functor>(f)); in test_b34() [all …]
|
/external/eigen/unsupported/Eigen/ |
D | AdolcForward | 98 template<typename Functor> class AdolcForwardJacobian : public Functor 103 AdolcForwardJacobian() : Functor() {} 104 AdolcForwardJacobian(const Functor& f) : Functor(f) {} 108 AdolcForwardJacobian(const T0& a0) : Functor(a0) {} 110 AdolcForwardJacobian(const T0& a0, const T1& a1) : Functor(a0, a1) {} 112 AdolcForwardJacobian(const T0& a0, const T1& a1, const T1& a2) : Functor(a0, a1, a2) {} 114 typedef typename Functor::InputType InputType; 115 typedef typename Functor::ValueType ValueType; 116 typedef typename Functor::JacobianType JacobianType; 126 Functor::operator()(x, v); [all …]
|
/external/openscreen/platform/api/ |
D | task_runner.h | 37 template <typename Functor> 38 inline void PostTask(Functor f) { in PostTask() 46 template <typename Functor> 47 inline void PostTaskWithDelay(Functor f, Clock::duration delay) { in PostTaskWithDelay()
|
/external/eigen/unsupported/test/ |
D | NumericalDiff.cpp | 13 struct Functor struct 26 Functor() : m_inputs(InputsAtCompileTime), m_values(ValuesAtCompileTime) {} in Functor() argument 27 Functor(int inputs, int values) : m_inputs(inputs), m_values(values) {} in Functor() argument 34 struct my_functor : Functor<double> argument 36 my_functor(void): Functor<double>(3,15) {} in my_functor()
|
D | NonLinearOptimization.cpp | 108 struct Functor struct 121 Functor() : m_inputs(InputsAtCompileTime), m_values(ValuesAtCompileTime) {} in Functor() function 122 Functor(int inputs, int values) : m_inputs(inputs), m_values(values) {} in Functor() function 131 struct lmder_functor : Functor<double> argument 133 lmder_functor(void): Functor<double>(3,15) {} in lmder_functor() 243 struct hybrj_functor : Functor<double> 245 hybrj_functor(void) : Functor<double>(9,9) {} in hybrj_functor() 349 struct hybrd_functor : Functor<double> 351 hybrd_functor(void) : Functor<double>(9,9) {} in hybrd_functor() 431 struct lmstr_functor : Functor<double> [all …]
|
/external/angle/third_party/abseil-cpp/absl/utility/ |
D | utility.h | 237 template <typename Functor, typename Tuple, std::size_t... Indexes> 238 auto apply_helper(Functor&& functor, Tuple&& t, index_sequence<Indexes...>) 240 absl::forward<Functor>(functor), 243 absl::forward<Functor>(functor), 288 template <typename Functor, typename Tuple> 289 auto apply(Functor&& functor, Tuple&& t) 291 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 295 absl::forward<Functor>(functor), absl::forward<Tuple>(t),
|
/external/openscreen/third_party/abseil/src/absl/utility/ |
D | utility.h | 237 template <typename Functor, typename Tuple, std::size_t... Indexes> 238 auto apply_helper(Functor&& functor, Tuple&& t, index_sequence<Indexes...>) 240 absl::forward<Functor>(functor), 243 absl::forward<Functor>(functor), 288 template <typename Functor, typename Tuple> 289 auto apply(Functor&& functor, Tuple&& t) 291 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 295 absl::forward<Functor>(functor), absl::forward<Tuple>(t),
|
/external/abseil-cpp/absl/utility/ |
D | utility.h | 237 template <typename Functor, typename Tuple, std::size_t... Indexes> 238 auto apply_helper(Functor&& functor, Tuple&& t, index_sequence<Indexes...>) 240 absl::forward<Functor>(functor), 243 absl::forward<Functor>(functor), 288 template <typename Functor, typename Tuple> 289 auto apply(Functor&& functor, Tuple&& t) 291 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 295 absl::forward<Functor>(functor), absl::forward<Tuple>(t),
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/utility/ |
D | utility.h | 237 template <typename Functor, typename Tuple, std::size_t... Indexes> 238 auto apply_helper(Functor&& functor, Tuple&& t, index_sequence<Indexes...>) 240 absl::forward<Functor>(functor), 243 absl::forward<Functor>(functor), 288 template <typename Functor, typename Tuple> 289 auto apply(Functor&& functor, Tuple&& t) 291 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 295 absl::forward<Functor>(functor), absl::forward<Tuple>(t),
|
/external/webrtc/third_party/abseil-cpp/absl/utility/ |
D | utility.h | 237 template <typename Functor, typename Tuple, std::size_t... Indexes> 238 auto apply_helper(Functor&& functor, Tuple&& t, index_sequence<Indexes...>) 240 absl::forward<Functor>(functor), 243 absl::forward<Functor>(functor), 288 template <typename Functor, typename Tuple> 289 auto apply(Functor&& functor, Tuple&& t) 291 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 295 absl::forward<Functor>(functor), absl::forward<Tuple>(t),
|
/external/libtextclassifier/abseil-cpp/absl/utility/ |
D | utility.h | 237 template <typename Functor, typename Tuple, std::size_t... Indexes> 238 auto apply_helper(Functor&& functor, Tuple&& t, index_sequence<Indexes...>) 240 absl::forward<Functor>(functor), 243 absl::forward<Functor>(functor), 288 template <typename Functor, typename Tuple> 289 auto apply(Functor&& functor, Tuple&& t) 291 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 295 absl::forward<Functor>(functor), absl::forward<Tuple>(t),
|
/external/openscreen/util/ |
D | alarm.h | 50 template <typename Functor> 51 inline void Schedule(Functor functor, Clock::time_point alarm_time) { in Schedule() 57 template <typename Functor> 58 inline void ScheduleFromNow(Functor functor, Clock::duration delay) { in ScheduleFromNow()
|
/external/eigen/Eigen/src/Core/products/ |
D | Parallelizer.h | 87 template<bool Condition, typename Functor, typename Index> 88 void parallelize_gemm(const Functor& func, Index rows, Index cols, Index depth, bool transpose) in parallelize_gemm() 111 Index pb_max_threads = std::max<Index>(1,size / Functor::Traits::nr); in parallelize_gemm() 144 blockRows = (blockRows/Functor::Traits::mr)*Functor::Traits::mr; in parallelize_gemm()
|
/external/tensorflow/tensorflow/core/kernels/mkl/ |
D | mkl_cwise_ops_common.cc | 32 template <typename Device, typename Functor> 33 class MklBinaryOp : public BinaryOp<Device, Functor> { 36 : BinaryOp<Device, Functor>(context) {} in MklBinaryOp() 46 BinaryOp<Device, Functor>::Compute(context); in Compute()
|