Home
last modified time | relevance | path

Searched refs:drop_remainder (Results 1 – 25 of 79) sorted by relevance

1234

/third_party/mindspore/tests/ut/python/dataset/
Dtest_batch.py31 drop_remainder = True
35 data1 = data1.batch(batch_size, drop_remainder)
49 drop_remainder = True
53 data1 = data1.batch(batch_size, drop_remainder=drop_remainder)
67 drop_remainder = False
71 data1 = data1.batch(batch_size=batch_size, drop_remainder=drop_remainder)
85 drop_remainder = False
89 data1 = data1.batch(batch_size, drop_remainder)
120 drop_remainder = False
124 data1 = data1.batch(drop_remainder=drop_remainder, batch_size=batch_size)
[all …]
Dtest_pad_batch.py63 …data1 = data1.batch(batch_size=2, drop_remainder=False, pad_info={"col2d": ([2, 2], -2), "col1d": …
72 data1 = data1.batch(batch_size=2, drop_remainder=False, pad_info={"col2d": ([1, 2], -2)})
81 …data1 = data1.batch(batch_size=2, drop_remainder=False, pad_info={"col": (None, -1)}) # pad autom…
94 data1 = data1.batch(batch_size=2, drop_remainder=False, pad_info={}) # pad automatically
103 data1 = data1.batch(batch_size=3, drop_remainder=False,
117 data1 = data1.batch(batch_size=24, drop_remainder=True, pad_info=pad_info)
133 data1 = data1.batch(batch_size=24, drop_remainder=True, pad_info=pad_info)
149 data1 = data1.batch(batch_size=24, drop_remainder=True)
164 data1 = data1.batch(batch_size=24, drop_remainder=True)
181 data1 = data1.batch(batch_size=25, drop_remainder=True)
[all …]
Dtest_mixup_op.py42 ds_original = ds_original.batch(5, drop_remainder=True)
57 data1 = data1.batch(5, drop_remainder=True)
86 ds_original = ds_original.batch(4, pad_info={}, drop_remainder=True)
105 data1 = data1.batch(4, pad_info={}, drop_remainder=True)
133 ds_original = ds_original.batch(5, drop_remainder=True)
148 data1 = data1.batch(5, drop_remainder=True)
178 ds_original = ds_original.batch(2, drop_remainder=True)
197 data1 = data1.batch(2, drop_remainder=True)
230 data = data.batch(5, drop_remainder=True)
313 ds_original = ds_original.batch(5, drop_remainder=True)
[all …]
Dtest_cutmix_batch_op.py42 ds_original = ds_original.batch(5, drop_remainder=True)
58 data1 = data1.batch(5, drop_remainder=True)
85 ds_original = ds_original.batch(5, drop_remainder=True)
101 data1 = data1.batch(5, drop_remainder=True)
131 ds_original = ds_original.batch(4, pad_info={}, drop_remainder=True)
153 data1 = data1.batch(4, pad_info={}, drop_remainder=True)
183 ds_original = ds_original.batch(2, drop_remainder=True)
205 data1 = data1.batch(2, drop_remainder=True)
238 data = data.batch(5, drop_remainder=True)
264 data = data.batch(5, drop_remainder=True)
[all …]
Dtest_2ops.py76 data1 = data1.batch(batch_size, drop_remainder=True)
93 data1 = data1.batch(batch_size, drop_remainder=True)
112 data1 = data1.batch(batch_size, drop_remainder=True)
134 data1 = data1.batch(batch_size, drop_remainder=True)
Dtest_deviceop_cpu.py61 data = data.batch(batch_size, drop_remainder=True)
86 data = data.batch(batch_size, drop_remainder=True)
116 data = data.batch(batch_size, drop_remainder=True)
Dtest_tensor_string.py80 data = data.batch(2, drop_remainder=True)
232 …data1 = data1.batch(batch_size=2, drop_remainder=False, pad_info={"col2d": ([2, 2], b"-2"), "col1d…
242 data1 = data1.batch(batch_size=2, drop_remainder=False, pad_info={"col2d": ([1, 2], "")})
251 …data1 = data1.batch(batch_size=2, drop_remainder=False, pad_info={"col": (None, "PAD_VALUE")}) # …
264 data1 = data1.batch(batch_size=2, drop_remainder=False, pad_info={}) # pad automatically
273 data1 = data1.batch(batch_size=3, drop_remainder=False,
Dtest_repeat.py84 data1 = data1.batch(batch_size, drop_remainder=True)
204 data = data.batch(2, drop_remainder=False)
267 data1 = data1.batch(batch_size, drop_remainder=False)
289 data1 = data1.batch(batch_size, drop_remainder=False)
Dtest_var_batch_map.py83drop_remainder=drop)
91 … .batch(batch_size=func, drop_remainder=drop, input_columns=["num"], per_batch_map=simple_copy)
97 …neratorDataset((lambda: gen(gen_num)), ["num"]).batch(batch_size=func, drop_remainder=drop).repeat(
106 ….batch(batch_size=func, drop_remainder=drop, input_columns=["num"], per_batch_map=simple_copy).rep…
277 …data1 = data1.batch(batch_size=add_one, drop_remainder=True, input_columns=["image"], per_batch_ma…
Dtest_sync_wait.py120 dataset = dataset.batch(batch_size, drop_remainder=True)
143 dataset = dataset.batch(batch_size, drop_remainder=True)
150 dataset2 = dataset2.batch(batch_size, drop_remainder=True)
Dtest_get_size.py106 data = ds.TFRecordDataset(FILES, num_samples=10).batch(3, drop_remainder=True)
108 data = ds.TFRecordDataset(FILES, num_samples=10).batch(3, drop_remainder=False)
Dtest_mixup_label_smoothing.py78 ds1 = ds1.batch(batch_size, drop_remainder=True)
128 ds1 = ds1.batch(batch_size, drop_remainder=True)
/third_party/mindspore/tests/st/fl/albert/src/
Ddataset.py79 drop_remainder=True, output_dir=None, i=0, cyclic_trunc=False): argument
90 … do_shuffle=do_shuffle, drop_remainder=drop_remainder, cyclic_trunc=cyclic_trunc)
101 drop_remainder=True, output_dir=None, cyclic_trunc=False): argument
116 … do_shuffle=do_shuffle, drop_remainder=drop_remainder, cyclic_trunc=cyclic_trunc)
127 drop_remainder=True, cyclic_trunc=False): argument
146 dataset = dataset.batch(batch_size=batch_size, drop_remainder=drop_remainder)
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/ir/datasetops/
Dbatch_node.cc33 BatchNode::BatchNode(std::shared_ptr<DatasetNode> child, int32_t batch_size, bool drop_remainder, b… in BatchNode() argument
39 drop_remainder_(drop_remainder), in BatchNode()
52 BatchNode::BatchNode(std::shared_ptr<DatasetNode> child, int32_t batch_size, bool drop_remainder) in BatchNode() argument
53 : batch_size_(batch_size), drop_remainder_(drop_remainder), pad_(false) { in BatchNode()
180 bool drop_remainder = json_obj["drop_remainder"]; in from_json() local
181 *result = std::make_shared<BatchNode>(ds, batch_size, drop_remainder); in from_json()
Dbatch_node.h36 BatchNode(std::shared_ptr<DatasetNode> child, int32_t batch_size, bool drop_remainder, bool pad,
43 BatchNode(std::shared_ptr<DatasetNode> child, int32_t batch_size, bool drop_remainder);
Dbucket_batch_by_length_node.cc36 bool drop_remainder) in BucketBatchByLengthNode() argument
43 drop_remainder_(drop_remainder) { in BucketBatchByLengthNode()
/third_party/mindspore/tests/st/data_transfer/
Dtest_tdt_data_transfer.py32drop_remainder=True, usage=None, shuffle=False, num_workers=8, resize_size=32, pad_info=None): argument
48 …ds = ds.batch(batch_size, drop_remainder=drop_remainder, num_parallel_workers=num_workers, pad_inf…
/third_party/mindspore/tests/st/model_zoo_tests/yolov3_darknet53/src/
Dyolo_dataset.py173 num_parallel_workers=min(32, num_parallel_workers), drop_remainder=True)
177 num_parallel_workers=min(8, num_parallel_workers), drop_remainder=True)
187 ds = ds.batch(batch_size, drop_remainder=True)
/third_party/mindspore/tests/st/model_zoo_tests/wide_and_deep/python_file_for_ci/
Ddatasets.py57 drop_remainder=True)
99 data_set = data_set.batch(int(batch_size / line_per_sample), drop_remainder=True)
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/
Dbucket_batch_by_length_op.cc36 bool pad_to_bucket_boundary, bool drop_remainder, in BucketBatchByLengthOp() argument
45 drop_remainder_(drop_remainder), in BucketBatchByLengthOp()
Dbucket_batch_by_length_op.h41 … bool pad_to_bucket_boundary, bool drop_remainder, int32_t op_connector_size);
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/engine/ir/datasetops/
Dbindings.cc99 … .def(py::init([](std::shared_ptr<DatasetNode> self, int32_t batch_size, bool drop_remainder, in __anon4440814b0802()
111 self, batch_size, drop_remainder, pad, toStringVector(in_col_names), in __anon4440814b0802()
124 bool drop_remainder) { in __anon4440814b0a02() argument
131 pad_to_bucket_boundary, drop_remainder); in __anon4440814b0a02()
/third_party/mindspore/tests/st/quantization/mobilenetv2_quant/
Ddataset.py62 cifar_ds = cifar_ds.batch(batch_size, drop_remainder=True)
/third_party/mindspore/tests/st/quantization/resnet50_quant/
Ddataset.py62 data_set = data_set.batch(batch_size, drop_remainder=True)
/third_party/mindspore/tests/st/summary/
Ddataset.py50 mnist_ds = mnist_ds.batch(batch_size=batch_size, drop_remainder=True)

1234