Home
last modified time | relevance | path

Searched refs:Reducer (Results 1 – 25 of 88) sorted by relevance

1234

/external/angle/third_party/vulkan-deps/spirv-tools/src/source/reduce/
Dreducer.cpp38 Reducer::Reducer(spv_target_env target_env) : target_env_(target_env) {} in Reducer() function in spvtools::reduce::Reducer
40 Reducer::~Reducer() = default;
42 void Reducer::SetMessageConsumer(MessageConsumer c) { in SetMessageConsumer()
52 void Reducer::SetInterestingnessFunction( in SetInterestingnessFunction()
53 Reducer::InterestingnessFunction interestingness_function) { in SetInterestingnessFunction()
57 Reducer::ReductionResultStatus Reducer::Run( in Run()
75 return Reducer::ReductionResultStatus::kInitialStateInvalid; in Run()
82 return Reducer::ReductionResultStatus::kInitialStateNotInteresting; in Run()
85 Reducer::ReductionResultStatus result = in Run()
89 if (result == Reducer::ReductionResultStatus::kComplete) { in Run()
[all …]
Dreducer.h29 class Reducer {
62 explicit Reducer(spv_target_env target_env);
65 Reducer(const Reducer&) = delete;
66 Reducer(Reducer&&) = delete;
67 Reducer& operator=(const Reducer&) = delete;
68 Reducer& operator=(Reducer&&) = delete;
71 ~Reducer();
/external/swiftshader/third_party/SPIRV-Tools/source/reduce/
Dreducer.cpp37 Reducer::Reducer(spv_target_env target_env) : target_env_(target_env) {} in Reducer() function in spvtools::reduce::Reducer
39 Reducer::~Reducer() = default;
41 void Reducer::SetMessageConsumer(MessageConsumer c) { in SetMessageConsumer()
51 void Reducer::SetInterestingnessFunction( in SetInterestingnessFunction()
52 Reducer::InterestingnessFunction interestingness_function) { in SetInterestingnessFunction()
56 Reducer::ReductionResultStatus Reducer::Run( in Run()
74 return Reducer::ReductionResultStatus::kInitialStateInvalid; in Run()
81 return Reducer::ReductionResultStatus::kInitialStateNotInteresting; in Run()
84 Reducer::ReductionResultStatus result = in Run()
88 if (result == Reducer::ReductionResultStatus::kComplete) { in Run()
[all …]
Dreducer.h29 class Reducer {
62 explicit Reducer(spv_target_env target_env);
65 Reducer(const Reducer&) = delete;
66 Reducer(Reducer&&) = delete;
67 Reducer& operator=(const Reducer&) = delete;
68 Reducer& operator=(Reducer&&) = delete;
71 ~Reducer();
/external/deqp-deps/SPIRV-Tools/source/reduce/
Dreducer.cpp37 Reducer::Reducer(spv_target_env target_env) : target_env_(target_env) {} in Reducer() function in spvtools::reduce::Reducer
39 Reducer::~Reducer() = default;
41 void Reducer::SetMessageConsumer(MessageConsumer c) { in SetMessageConsumer()
51 void Reducer::SetInterestingnessFunction( in SetInterestingnessFunction()
52 Reducer::InterestingnessFunction interestingness_function) { in SetInterestingnessFunction()
56 Reducer::ReductionResultStatus Reducer::Run( in Run()
74 return Reducer::ReductionResultStatus::kInitialStateInvalid; in Run()
81 return Reducer::ReductionResultStatus::kInitialStateNotInteresting; in Run()
84 Reducer::ReductionResultStatus result = in Run()
88 if (result == Reducer::ReductionResultStatus::kComplete) { in Run()
[all …]
Dreducer.h29 class Reducer {
62 explicit Reducer(spv_target_env target_env);
65 Reducer(const Reducer&) = delete;
66 Reducer(Reducer&&) = delete;
67 Reducer& operator=(const Reducer&) = delete;
68 Reducer& operator=(Reducer&&) = delete;
71 ~Reducer();
/external/swiftshader/third_party/SPIRV-Tools/test/reduce/
Dvalidation_during_reduction_test.cpp212 Reducer reducer(env); in TEST()
233 Reducer::ReductionResultStatus status = reducer.Run( in TEST()
236 ASSERT_EQ(status, Reducer::ReductionResultStatus::kComplete); in TEST()
427 Reducer reducer(env); in TEST()
448 Reducer::ReductionResultStatus status = reducer.Run( in TEST()
451 ASSERT_EQ(status, Reducer::ReductionResultStatus::kComplete); in TEST()
458 void SetupReducerForCheckValidationOptions(Reducer* reducer) { in SetupReducerForCheckValidationOptions()
542 Reducer reducer(env); in TEST()
545 Reducer::ReductionResultStatus status = in TEST()
549 ASSERT_EQ(status, Reducer::ReductionResultStatus::kInitialStateInvalid); in TEST()
[all …]
Dreducer_test.cpp194 Reducer reducer(kEnv); in TEST()
216 Reducer::ReductionResultStatus status = reducer.Run( in TEST()
219 ASSERT_EQ(status, Reducer::ReductionResultStatus::kComplete); in TEST()
514 Reducer reducer(kEnv); in TEST()
531 Reducer::ReductionResultStatus status = reducer.Run( in TEST()
534 ASSERT_EQ(status, Reducer::ReductionResultStatus::kComplete); in TEST()
538 Reducer reducer(kEnv); in TEST()
555 Reducer::ReductionResultStatus status = reducer.Run( in TEST()
558 ASSERT_EQ(status, Reducer::ReductionResultStatus::kComplete); in TEST()
577 Reducer reducer(kEnv); in TEST()
[all …]
/external/deqp-deps/SPIRV-Tools/test/reduce/
Dvalidation_during_reduction_test.cpp212 Reducer reducer(env); in TEST()
233 Reducer::ReductionResultStatus status = reducer.Run( in TEST()
236 ASSERT_EQ(status, Reducer::ReductionResultStatus::kComplete); in TEST()
427 Reducer reducer(env); in TEST()
448 Reducer::ReductionResultStatus status = reducer.Run( in TEST()
451 ASSERT_EQ(status, Reducer::ReductionResultStatus::kComplete); in TEST()
458 void SetupReducerForCheckValidationOptions(Reducer* reducer) { in SetupReducerForCheckValidationOptions()
542 Reducer reducer(env); in TEST()
545 Reducer::ReductionResultStatus status = in TEST()
549 ASSERT_EQ(status, Reducer::ReductionResultStatus::kInitialStateInvalid); in TEST()
[all …]
Dreducer_test.cpp194 Reducer reducer(kEnv); in TEST()
216 Reducer::ReductionResultStatus status = reducer.Run( in TEST()
219 ASSERT_EQ(status, Reducer::ReductionResultStatus::kComplete); in TEST()
514 Reducer reducer(kEnv); in TEST()
531 Reducer::ReductionResultStatus status = reducer.Run( in TEST()
534 ASSERT_EQ(status, Reducer::ReductionResultStatus::kComplete); in TEST()
538 Reducer reducer(kEnv); in TEST()
555 Reducer::ReductionResultStatus status = reducer.Run( in TEST()
558 ASSERT_EQ(status, Reducer::ReductionResultStatus::kComplete); in TEST()
577 Reducer reducer(kEnv); in TEST()
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/reduce/
Dvalidation_during_reduction_test.cpp212 Reducer reducer(env); in TEST()
233 Reducer::ReductionResultStatus status = reducer.Run( in TEST()
236 ASSERT_EQ(status, Reducer::ReductionResultStatus::kComplete); in TEST()
427 Reducer reducer(env); in TEST()
448 Reducer::ReductionResultStatus status = reducer.Run( in TEST()
451 ASSERT_EQ(status, Reducer::ReductionResultStatus::kComplete); in TEST()
458 void SetupReducerForCheckValidationOptions(Reducer* reducer) { in SetupReducerForCheckValidationOptions()
542 Reducer reducer(env); in TEST()
545 Reducer::ReductionResultStatus status = in TEST()
549 ASSERT_EQ(status, Reducer::ReductionResultStatus::kInitialStateInvalid); in TEST()
[all …]
Dreducer_test.cpp194 Reducer reducer(kEnv); in TEST()
216 Reducer::ReductionResultStatus status = reducer.Run( in TEST()
219 ASSERT_EQ(status, Reducer::ReductionResultStatus::kComplete); in TEST()
514 Reducer reducer(kEnv); in TEST()
531 Reducer::ReductionResultStatus status = reducer.Run( in TEST()
534 ASSERT_EQ(status, Reducer::ReductionResultStatus::kComplete); in TEST()
538 Reducer reducer(kEnv); in TEST()
555 Reducer::ReductionResultStatus status = reducer.Run( in TEST()
558 ASSERT_EQ(status, Reducer::ReductionResultStatus::kComplete); in TEST()
577 Reducer reducer(kEnv); in TEST()
[all …]
/external/tensorflow/tensorflow/compiler/xla/tests/
Dreduce_window_test.cc576 enum Reducer { kAdd, kMax }; enum
586 Reducer reducer;
956 Reducer reducer;
960 /*padding=*/Padding::kValid, /*reducer=*/Reducer::kAdd},
963 /*padding=*/Padding::kSame, /*reducer=*/Reducer::kAdd},
966 /*padding=*/Padding::kValid, /*reducer=*/Reducer::kAdd},
969 /*padding=*/Padding::kValid, /*reducer=*/Reducer::kAdd},
972 /*padding=*/Padding::kSame, /*reducer=*/Reducer::kAdd},
975 /*padding=*/Padding::kValid, /*reducer=*/Reducer::kAdd},
978 /*padding=*/Padding::kValid, /*reducer=*/Reducer::kAdd},
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dreduction_ops.h28 template <typename Reducer>
52 typename ReductionAxes, typename Reducer>
55 const ReductionAxes& reduction_axes, const Reducer& reducer) {
62 #define CASTING_SPECIALIZATION(Reducer, ScalarType, IntermediateType) \
66 Reducer<ScalarType>> { \
69 const Reducer<ScalarType>& reducer) { \
72 Reducer<IntermediateType> intermediate_reducer; \
159 template <typename Reducer>
161 static auto identity(const Reducer& reducer)
182 template <typename Device, typename OUT_T, typename Reducer>
[all …]
Dreduction_ops_common.h130 template <typename Device, class T, typename Tperm, typename Reducer>
151 bool is_scalar_identity = functor::ReducerTraits<Reducer>::IsScalarIdentity;
169 typedef functor::ReduceFunctor<Device, Reducer> Functor;
172 Reducer reducer;
255 template <typename Device, typename Reducer>
260 const Reducer& reducer) {
262 ReduceEigenImpl<Device, OUT_T, IN_T, ReductionAxes, Reducer> reducer_impl;
267 static void FillIdentity(const Device& d, OUT_T out, const Reducer& reducer) {
272 template <typename Reducer>
273 struct ReduceFunctor<CPUDevice, Reducer>
[all …]
Dreduction_ops_common_gpu.h29 template <typename Reducer>
30 struct ReduceFunctor<Eigen::GpuDevice, Reducer> {
34 const Reducer& reducer);
38 const Reducer& reducer);
/external/eigen/unsupported/Eigen/CXX11/src/util/
DCXX11Meta.h259 typename Reducer,
264 typename Reducer
265 > struct reduce<Reducer>
267 constexpr static inline int run() { return Reducer::Identity; }
271 typename Reducer,
273 > struct reduce<Reducer, A>
279 typename Reducer,
282 > struct reduce<Reducer, A, Ts...>
284 …constexpr static inline auto run(A a, Ts... ts) -> decltype(Reducer::run(a, reduce<Reducer, Ts...>…
285 return Reducer::run(a, reduce<Reducer, Ts...>::run(ts...));
[all …]
DEmulateCXX11Meta.h257 template<typename Reducer, typename Op, typename A, std::size_t N>
261 bool result = Reducer::run(Op::run(a[0]), Op::run(a[1]));
263 result = Reducer::run(result, Op::run(a[i]));
269 template<typename Reducer, typename Op, typename A>
270 struct ArrayApplyAndReduce<Reducer, Op, A, 1> {
276 template<typename Reducer, typename Op, typename A, std::size_t N>
278 return ArrayApplyAndReduce<Reducer, Op, A, N>::run(a);
281 template<typename Reducer, typename Op, typename A, typename B, std::size_t N>
285 bool result = Reducer::run(Op::run(a[0], b[0]), Op::run(a[1], b[1]));
287 result = Reducer::run(result, Op::run(a[i], b[i]));
[all …]
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dgroup_by_reducer_test.py41 reducer = grouping.Reducer(
60 reducer = grouping.Reducer(
76 reducer = grouping.Reducer(
98 reducer = grouping.Reducer(
120 reducer = grouping.Reducer(
140 reducer = grouping.Reducer(
155 reducer = grouping.Reducer(
169 reducer = grouping.Reducer(
193 reducer = grouping.Reducer(init_fn, reduce_fn, finalize_fn)
/external/llvm-project/mlir/include/mlir/Reducer/
DReductionTreePass.h39 template <typename Reducer, TraversalMode mode>
41 : public ReductionTreeBase<ReductionTreePass<Reducer, mode>> {
44 : ReductionTreeBase<ReductionTreePass<Reducer, mode>>(pass), in ReductionTreePass()
53 Reducer reducer; in runOnOperation()
82 Reducer reducer;
/external/rust/crates/rayon/src/iter/
Dfold.rs77 type Reducer = C::Reducer; typedef
80 fn split_at(self, index: usize) -> (Self, Self, Self::Reducer) { in split_at() argument
119 fn to_reducer(&self) -> Self::Reducer { in to_reducer() argument
253 type Reducer = C::Reducer; typedef
256 fn split_at(self, index: usize) -> (Self, Self, Self::Reducer) { in split_at() argument
299 fn to_reducer(&self) -> Self::Reducer { in to_reducer() argument
Dtry_fold.rs83 type Reducer = C::Reducer; typedef
86 fn split_at(self, index: usize) -> (Self, Self, Self::Reducer) { in split_at() argument
125 fn to_reducer(&self) -> Self::Reducer { in to_reducer() argument
244 type Reducer = C::Reducer; typedef
247 fn split_at(self, index: usize) -> (Self, Self, Self::Reducer) { in split_at() argument
291 fn to_reducer(&self) -> Self::Reducer { in to_reducer() argument
Dflatten.rs61 type Reducer = C::Reducer; typedef
64 fn split_at(self, index: usize) -> (Self, Self, C::Reducer) { in split_at() argument
94 fn to_reducer(&self) -> Self::Reducer { in to_reducer() argument
Dflatten_iter.rs63 type Reducer = C::Reducer; typedef
66 fn split_at(self, index: usize) -> (Self, Self, C::Reducer) { in split_at() argument
95 fn to_reducer(&self) -> Self::Reducer { in to_reducer() argument
Dfind.rs32 type Reducer = FindReducer; typedef
35 fn split_at(self, _index: usize) -> (Self, Self, Self::Reducer) { in split_at() argument
61 fn to_reducer(&self) -> Self::Reducer { in to_reducer() argument
116 impl<T> Reducer<Option<T>> for FindReducer { impl

1234