Home
last modified time | relevance | path

Searched refs:max_shapes (Results 1 – 8 of 8) sorted by relevance

/third_party/mindspore/tests/ut/python/dataset/
Dtest_datasets_get_dynamic_shape.py35 min_shapes, max_shapes = dataset.dynamic_min_max_shapes()
40 np.testing.assert_array_equal(max_shapes, [[32, 69], [16, 69, 69, 3], [69]])
59 min_shapes, max_shapes = dataset.dynamic_min_max_shapes()
64 np.testing.assert_array_equal(max_shapes, [[16, 99, 83], []])
76 min_shapes, max_shapes = dataset.dynamic_min_max_shapes()
81 np.testing.assert_array_equal(max_shapes, [[16, 99, 83], []])
100 min_shapes, max_shapes = dataset.dynamic_min_max_shapes()
105 np.testing.assert_array_equal(max_shapes, [[16, 99, 83], [5, 5]])
119 min_shapes, max_shapes = dataset.dynamic_min_max_shapes()
124 np.testing.assert_array_equal(max_shapes, [[16, 99, 83], [5, 5]])
[all …]
/third_party/mindspore/mindspore/train/
Ddataset_helper.py63 …init__(self, network, dataset_types, dataset_shapes, queue_name, min_shapes=None, max_shapes=None): argument
70 if min_shapes is not None and max_shapes is not None:
72 Validator.check_value_type("max_shapes", max_shapes, [list, tuple])
74 self.get_next.add_prim_attr("max_shapes", max_shapes)
83 min_shapes=None, max_shapes=None): argument
85 … network = _DataWrapper(network, dataset_types, dataset_shapes, queue_name, min_shapes, max_shapes)
98 (min_shapes, max_shapes) = (None, None) if not has_dynamic_shape(dataset_shapes) \
101 queue_name, min_shapes, max_shapes)
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/
Dbatch_op.cc438 …std::vector<std::vector<dsize_t>> pad_shapes(column_name_id_map.size()), max_shapes(column_name_id… in PadColumns() local
443 max_shapes[col_id] = std::vector<dsize_t>((*table)->front()[col_id]->Rank(), -1); in PadColumns()
444 …if (pad_shapes[col_id].empty()) pad_shapes[col_id] = max_shapes[col_id]; // fill pad shape with -1 in PadColumns()
446 pad_shapes[col_id].size() == max_shapes[col_id].size(), in PadColumns()
448 …std::to_string(pad_shapes[col_id].size()) + ", column rank: " + std::to_string(max_shapes[col_id].… in PadColumns()
455 row[col_id]->Rank() == max_shapes[col_id].size(), in PadColumns()
457 … std::to_string(row[col_id]->Rank()) + ", shape 2: " + std::to_string(max_shapes[col_id].size())); in PadColumns()
459 max_shapes[col_id][dim] = std::max(max_shapes[col_id][dim], row[col_id]->shape()[dim]); in PadColumns()
467 if (pad_shapes[col_id][dim] < 0) pad_shapes[col_id][dim] = max_shapes[col_id][dim]; in PadColumns()
/third_party/libpng/contrib/tools/
Dgenpng.c761 # define max_shapes 256 in main() macro
762 struct arg arg_list[max_shapes]; in main()
777 for (nshapes=0; 3+7*(nshapes+1) <= argc && nshapes < max_shapes; in main()
/third_party/flutter/skia/third_party/externals/libpng/contrib/tools/
Dgenpng.c761 # define max_shapes 256 in main() macro
762 struct arg arg_list[max_shapes]; in main()
777 for (nshapes=0; 3+7*(nshapes+1) <= argc && nshapes < max_shapes; in main()
/third_party/skia/third_party/externals/libpng/contrib/tools/
Dgenpng.c761 # define max_shapes 256 in main() macro
762 struct arg arg_list[max_shapes]; in main()
777 for (nshapes=0; 3+7*(nshapes+1) <= argc && nshapes < max_shapes; in main()
/third_party/mindspore/mindspore/ops/
Dprimitive.py556 has_max_shape, max_shapes = get_specified_shape(args, 'max_shape')
567 out['max_shape'] = fn_infer_max_shape(*max_shapes)
/third_party/mindspore/mindspore/dataset/engine/
Ddatasets.py1697 min_shapes, max_shapes, dynamic_shapes = list(), list(), list()
1712 max_shapes.append(max_shape.tolist())
1718 max_shapes.append(fix_shape)
1727 return dynamic_shapes, min_shapes, max_shapes