Home
last modified time | relevance | path

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

123

/external/libchrome/base/containers/
Dflat_map.h152 class flat_map : public ::base::internal::flat_tree<
179 flat_map() = default;
180 explicit flat_map(const Compare& comp);
183 flat_map(InputIterator first,
188 flat_map(const flat_map&) = default;
189 flat_map(flat_map&&) noexcept = default;
191 flat_map(std::vector<value_type> items,
195 flat_map(std::initializer_list<value_type> ilist,
199 ~flat_map() = default;
201 flat_map& operator=(const flat_map&) = default;
[all …]
/external/libchrome/mojo/public/cpp/bindings/
Dmap_traits_flat_map.h14 struct MapTraits<base::flat_map<K, V, Compare>> {
17 using Iterator = typename base::flat_map<K, V, Compare>::iterator;
18 using ConstIterator = typename base::flat_map<K, V, Compare>::const_iterator;
20 static size_t GetSize(const base::flat_map<K, V, Compare>& input) {
24 static ConstIterator GetBegin(const base::flat_map<K, V, Compare>& input) {
27 static Iterator GetBegin(base::flat_map<K, V, Compare>& input) {
41 static bool Insert(base::flat_map<K, V, Compare>& input,
49 static void SetToEmpty(base::flat_map<K, V, Compare>* output) {
Dmap.h18 base::flat_map<Key, Value> MapToFlatMap(const std::map<Key, Value>& input) { in MapToFlatMap()
19 return base::flat_map<Key, Value>(input.begin(), input.end()); in MapToFlatMap()
23 base::flat_map<Key, Value> MapToFlatMap(std::map<Key, Value>&& input) { in MapToFlatMap()
24 return base::flat_map<Key, Value>(std::make_move_iterator(input.begin()), in MapToFlatMap()
29 std::map<Key, Value> FlatMapToMap(const base::flat_map<Key, Value>& input) { in FlatMapToMap()
34 std::map<Key, Value> FlatMapToMap(base::flat_map<Key, Value>&& input) { in FlatMapToMap()
Dclone_traits.h68 struct CloneTraits<base::flat_map<K, V>, false> {
69 static base::flat_map<K, V> Clone(const base::flat_map<K, V>& input) {
70 base::flat_map<K, V> result;
Dequals_traits.h77 struct EqualsTraits<base::flat_map<K, V>, false> {
78 static bool Equals(const base::flat_map<K, V>& a,
79 const base::flat_map<K, V>& b) {
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dflat_map_test.py42 dataset = dataset_ops.Dataset.from_tensor_slices(components).flat_map(
52 dataset = dataset_ops.Dataset.from_tensor_slices(components).flat_map(
53 lambda x: dataset_ops.Dataset.from_tensor_slices(x).flat_map(
69 dataset_ops.Dataset.from_tensor_slices(components).flat_map(
70 lambda x: dataset_ops.Dataset.from_tensor_slices(x).flat_map(
98 lambda x: {"foo": x * 2, "bar": x ** 2}).flat_map(
117 dataset = dataset_ops.Dataset.range(10).map(_map_fn).flat_map(_flat_map_fn)
Dwindow_test.py81 drop_remainder=drop_remainder).flat_map(_flat_map_fn)
122 stride=stride).flat_map(lambda x: x.batch(batch_size=size))
133 drop_remainder=True).flat_map(lambda x: x.batch(batch_size=5))
155 drop_remainder=True).flat_map(lambda x: x.batch(batch_size=5))
181 drop_remainder=True).flat_map(lambda x: x.batch(batch_size=4)).window(
183 drop_remainder=True).flat_map(lambda x: x.batch(batch_size=3))
210 size=3, shift=1).flat_map(lambda x: x.batch(batch_size=3))
223 drop_remainder=True).flat_map(lambda x: x.batch(batch_size=2))
Dfrom_tensors_test.py140 dataset = dataset.flat_map(
184 dataset = dataset.flat_map(
245 dataset = dataset.flat_map(
Ddataset_test.py117 lambda x: x.flat_map(lambda x: dataset_ops.Dataset.range(0)),
259 self.assertDatasetsEqual(value, dataset.flat_map(lambda x: x))
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/
Dflat_map_dataset_serialization_test.py44 return dataset_ops.Dataset.range(start, start + 5 * 5, 5).flat_map(map_fn)
59 return dataset_ops.Dataset.range(5).flat_map(flat_map_fn)
75 return dataset_ops.Dataset.range(100).flat_map(map_fn)
84 return dataset_ops.Dataset.range(5).flat_map(
101 return dataset_ops.Dataset.range(5).flat_map(flat_map_fn)
116 return dataset_ops.Dataset.range(10).map(_map_fn).flat_map(_flat_map_fn)
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/operators/
Drx-flat_map.hpp86 struct flat_map struct
89 typedef flat_map<Observable, CollectionSelector, ResultSelector, Coordination> this_type; argument
119flat_map(source_type o, collection_selector_type s, result_selector_type rs, coordination_type sf) in flat_map() argument
244 auto flat_map(AN&&... an) in flat_map() function
269 …class FlatMap = rxo::detail::flat_map<rxu::decay_t<Observable>, rxu::decay_t<CollectionSelector>, …
286 …class FlatMap = rxo::detail::flat_map<rxu::decay_t<Observable>, rxu::decay_t<CollectionSelector>, …
303 …class FlatMap = rxo::detail::flat_map<rxu::decay_t<Observable>, rxu::decay_t<CollectionSelector>, …
320 …class FlatMap = rxo::detail::flat_map<rxu::decay_t<Observable>, rxu::decay_t<CollectionSelector>, …
/external/Reactive-Extensions/RxCpp/Rx/v2/examples/linesfrombytes/
Dmain.cpp38 flat_map([&](int i){ in main()
46 flat_map([](observable<uint8_t> w){ in main()
101 flat_map([&](observable<string> w) { in main()
/external/libchrome/mojo/public/cpp/bindings/tests/
Dmap_unittest.cc20 base::flat_map<RectPtr, int32_t> map; in TEST()
32 base::flat_map<ContainsHashablePtr, int32_t> map; in TEST()
/external/libchrome/mojo/core/
Dwatcher_dispatcher.h77 base::flat_map<uintptr_t, scoped_refptr<Watch>> watches_;
80 base::flat_map<Dispatcher*, scoped_refptr<Watch>> watched_handles_;
Dinvitation_dispatcher.h33 using PortMapping = base::flat_map<std::string, ports::PortRef>;
Dwatcher_set.h61 base::flat_map<WatcherDispatcher*, Entry> watchers_;
/external/Reactive-Extensions/RxCpp/Rx/v2/examples/doxygen/
Dflat_map.cpp9 flat_map(
31 flat_map(
Dmerge_delay_error.cpp47 …auto o2 = rxcpp::observable<>::timer(std::chrono::milliseconds(20)).flat_map([](long) -> rxcpp::ob… in __anon87c160b80c02()
77 …auto o2 = rxcpp::observable<>::timer(std::chrono::milliseconds(20)).flat_map([](long) -> rxcpp::ob… in __anon87c160b81202()
/external/tensorflow/tensorflow/python/distribute/
Dinput_ops_test.py114 dataset = dataset.flat_map(readers.TFRecordDataset)
138 dataset = dataset.flat_map(readers.TFRecordDataset)
162 dataset = dataset.flat_map(readers.TFRecordDataset)
237 dataset = dataset.flat_map(readers.TextLineDataset)
256 dataset = dataset.flat_map(
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dauto_shard_dataset_test.py52 dataset = dataset.flat_map(core_readers.TFRecordDataset)
190 dataset = dataset.flat_map(core_readers.TFRecordDataset)
200 dataset = dataset.flat_map(core_readers.TFRecordDataset)
/external/grpc-grpc/src/python/grpcio/grpc/beta/
D_server_adaptations.py313 flat_map = {}
316 flat_map[method] = method_pair_map[method_pair]
317 return flat_map
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/optimization/
Doptimize_dataset_test.py55 0).flat_map(lambda _: dataset_ops.Dataset.from_tensors(var))
155 dataset = dataset.flat_map(flat_map_fn)
173 dataset = dataset.flat_map(flat_map_fn)
/external/libchrome/base/threading/
Dsequence_local_storage_map.h68 base::flat_map<int, ValueDestructorPair> sls_map_;
/external/libchrome/ipc/
Dipc_message_utils_unittest.cc225 base::flat_map<std::string, int> input; in TEST()
233 base::flat_map<std::string, int> output; in TEST()
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_utils_test.py107 ('FlatMap', lambda: dataset_ops.Dataset.range(5).flat_map(
155 ('FlatMap', lambda: dataset_ops.Dataset.range(5).flat_map(

123