/third_party/mindspore/tests/ut/python/dataset/ |
D | test_sampler.py | 31 def test_config(num_samples, num_repeats=None): function 45 assert test_config(num_samples=3, num_repeats=None) == [0, 1, 2] 46 assert test_config(num_samples=None, num_repeats=2) == [0, 1, 2, 3, 4] * 2 47 assert test_config(num_samples=4, num_repeats=2) == [0, 1, 2, 3] * 2 54 def test_config(replacement, num_samples, num_repeats): function 66 assert len(set(test_config(replacement=False, num_samples=2, num_repeats=6))) > 2 69 assert sorted(test_config(replacement=False, num_samples=None, num_repeats=4)) == ordered_res 70 assert sorted(test_config(replacement=True, num_samples=None, num_repeats=4)) != ordered_res 77 def test_config(replacement, num_samples, num_repeats, validate): function 91 test_config(replacement=True, num_samples=5, num_repeats=5, validate=[0, 1, 2, 3, 4, 5]) [all …]
|
D | test_vocab.py | 89 def test_config(lookup_str, vocab_input, special_tokens, special_first, unknown_token): function 102 assert test_config("w1 w2 w3", ["w1", "w2", "w3"], None, True, None) == [0, 1, 2] 104 …assert test_config("w1 w2 w3 s1 s2 ephemeral", ["w1", "w2", "w3"], ["s1", "s2"], True, "s2") == [2… 105 …assert test_config("w1 w2 w3 s1 s2", ["w1", "w2", "w3"], ["s1", "s2"], False, "s2") == [0, 1, 2, 3… 106 assert test_config("w3 w2 w1", ["w1", "w2", "w3"], None, True, "w1") == [2, 1, 0] 107 assert test_config("w3 w2 w1", ["w1", "w2", "w3"], None, False, "w1") == [2, 1, 0] 109 …assert test_config("w1 un1 w3 un2", ["w1", "w2", "w3"], ["<pad>", "<unk>"], True, "<unk>") == [2, … 110 …assert test_config("w1 un1 w3 un2", ["w1", "w2", "w3"], ["<pad>", "<unk>"], False, "<unk>") == [0,… 113 assert "doesn't exist in vocab." in test_config("un1", ["w1"], [], False, "unk") 114 …assert "doesn't exist in vocab and no unknown token is specified." in test_config("un1", ["w1"], [… [all …]
|
D | test_compose.py | 37 def test_config(arr, op_list): function 49 …assert test_config([[1, 0], [3, 4]], c_transforms.Compose([c_transforms.Fill(2)])) == [[2, 2], [2,… 52 assert test_config([[1, 0]], 59 assert test_config([1, 0], 70 test_config([1, 0], c_transforms.Compose([])) 74 … assert test_config([1, 0], py_transforms.Compose([py_transforms.OneHotOp(2)])) == [[0, 1], [1, 0]] 75 …assert test_config([1, 0], py_transforms.Compose([py_transforms.OneHotOp(2), (lambda x: x + x)])) … 79 assert test_config([1, 0], 84 assert test_config([1, 0], 87 assert test_config([1, 0], [py_transforms.OneHotOp(2), (lambda x: x + x)]) == [[0, 2], [2, 0]] [all …]
|
D | test_from_dataset.py | 59 def test_config(freq_range, top_k): function 70 test1_res = test_config(freq_range=(3, 4), top_k=4) 74 test2_res = test_config((2, None), None) 78 test3_res = test_config(None, 4) 82 test4_res = test_config((None, 3), 100) 86 test5_res = test_config(None, 1) 90 test6_res = test_config((4, 4), None) 107 def test_config(texts, top_k, special_tokens, special_first): function 118 assert test_config("A B C D <pad> <unk>", 4, ["<pad>", "<unk>"], True) == [2, 3, 4, 5, 0, 1] 120 assert test_config("A B C D <pad> <unk>", 4, ["<pad>", "<unk>"], False) == [0, 1, 2, 3, 4, 5] [all …]
|
D | test_ngram_op.py | 93 def test_config(input_line, n, l_pad=("", 0), r_pad=("", 0), sep=" "): function 106 assert test_config("Lone Star", [2, 3, 4, 5]) == ["Lone Star", "", "", ""] 108 …assert test_config("Beautiful British Columbia", 2, sep="") == ['BeautifulBritish', 'BritishColumb… 110 …assert test_config("Beautiful British Columbia", 3, sep="^-^") == ['Beautiful^-^British^-^Columbia… 112 assert test_config("Lone Star", 4, ("The", 1), ("State", 1)) == ['The Lone Star State'] 114 …assert "gram[1] with value [1] is not of type [<class 'int'>]" in test_config("Yours to Discover",… 115 assert "n needs to be a non-empty list" in test_config("Yours to Discover", []) 117 …assert "padding width need to be positive numbers" in test_config("Yours to Discover", [1], ("str"… 118 …assert "pad needs to be a tuple of (str, int)" in test_config("Yours to Discover", [1], ("str", "r… 120 assert "gram_0 must be greater than 0" in test_config("Yours to Discover", 0) [all …]
|
D | test_c_random_apply.py | 24 def test_config(arr, op_list, prob=0.5): function 35 res1 = test_config([[0, 1]], [ops.Duplicate(), ops.Concatenate()]) 38 …assert test_config([[0, 1, 2]], [ops.Compose([ops.Duplicate(), ops.Concatenate(), ops.Slice([0, 1,… 41 assert "is not of type [<class 'list'>]" in test_config([1, 0], ops.TypeCast(mstype.int32)) 42 …assert "Input prob is not within the required interval" in test_config([0, 1], [ops.Slice([0, 1])]… 43 …assert "is not of type [<class 'float'>, <class 'int'>]" in test_config([1, 0], [ops.TypeCast(msty… 44 assert "op_list with value None is not of type [<class 'list'>]" in test_config([1, 0], None)
|
D | test_random_select_subpolicy.py | 24 def test_config(arr, policy): function 38 res1 = test_config([[1, 2, 3]], policy1) 42 assert "policy can not be empty." in test_config([[1, 2, 3]], []) 43 assert "policy[0] can not be empty." in test_config([[1, 2, 3]], [[]]) 45 in test_config([[1, 2, 3]], [[(ops.PadEnd([4], 0), 0.5)], [(1, 0.4)]]) 46 …b of (op, prob) policy[1][0] is not within the required interval of [0, 1]" in test_config([[1]], [
|
D | test_c_compose.py | 25 def test_config(arr, op_list): function 37 assert test_config([[1, 0], [3, 4]], [ops.Fill(2)]) == [[2, 2], [2, 2]] 39 …assert test_config([[1, 0]], [ops.Duplicate(), ops.Concatenate(), ops.Duplicate(), ops.Concatenate… 42 assert test_config([1, 0], [py_ops.OneHotOp(2), ops.TypeCast(mstype.int32)]) == [[0, 1], [1, 0]] 44 …assert "op_list[0] is neither a c_transform op" in test_config([1, 0], [1, ops.TypeCast(mstype.int… 46 assert "op_list can not be empty." in test_config([1, 0], [])
|
D | test_c_random_choice.py | 27 def test_config(arr, op_list): function 40 res1 = test_config([[0, 1, 2]], [ops.PadEnd([4], 0), ops.Slice([0, 2])]) 44 res2 = test_config([[0, 1, 2]], [ops.Compose([ops.Duplicate(), ops.Concatenate()]), 48 assert test_config([[4, 3], [2, 1]], [ops.Slice([0])]) == [[4], [2]]
|
D | test_datasets_cifarop.py | 403 def test_config(usage, flag=True, cifar_path=None): function 416 assert test_config("train") == 10000 417 assert test_config("all") == 10000 418 assert "usage is not within the valid set of ['train', 'test', 'all']" in test_config("invalid") 419 …assert "Argument usage with value ['list'] is not of type [<class 'str'>]" in test_config(["list"]) 420 …0Dataset API can't read the data file (interface mismatch or no data found)" in test_config("test") 423 assert test_config("test", False) == 10000 424 assert test_config("all", False) == 10000 425 assert "Cifar100Dataset API can't read the data file" in test_config("train", False) 426 …assert "usage is not within the valid set of ['train', 'test', 'all']" in test_config("invalid", F… [all …]
|
D | test_datasets_cityscapes.py | 246 def test_config(usage="train", quality_mode="fine", task="color"): function 256 assert test_config(usage="train") == 5 257 assert test_config(usage="test") == 1 258 assert test_config(usage="val") == 1 259 assert test_config(usage="all") == 7 261 in test_config("invalid", "fine", "instance") 263 in test_config(["list"], "fine", "instance") 265 in test_config("train", "invalid", "instance") 267 in test_config("train", ["list"], "instance") 269 in test_config("train", "fine", "invalid") [all …]
|
D | test_datasets_flowers102.py | 300 def test_config(usage): function 310 assert test_config("all") == 6 311 assert test_config("train") == 2 312 assert test_config("test") == 2 313 assert test_config("valid") == 2 315 …assert "usage is not within the valid set of ['train', 'valid', 'test', 'all']" in test_config("in… 316 …assert "Argument usage with value ['list'] is not of type [<class 'str'>]" in test_config(["list"]) 325 def test_config(task): function 335 assert test_config("Classification") == 6 336 assert test_config("Segmentation") == 6 [all …]
|
D | test_datasets_mnist.py | 260 def test_config(usage, mnist_path=None): function 271 assert test_config("test") == 10000 272 assert test_config("all") == 10000 273 …Dataset API can't read the data file (interface mismatch or no data found)" in test_config("train") 274 assert "usage is not within the valid set of ['train', 'test', 'all']" in test_config("invalid") 275 …assert "Argument usage with value ['list'] is not of type [<class 'str'>]" in test_config(["list"]) 281 assert test_config("train", all_files_path) == 60000 282 assert test_config("test", all_files_path) == 10000 283 assert test_config("all", all_files_path) == 70000
|
D | test_datasets_sbd.py | 196 def test_config(usage): function 206 assert test_config("train") == 4 207 assert test_config("train_noval") == 4 208 assert test_config("val") == 2 209 assert test_config("all") == 6 210 …ge is not within the valid set of ['train', 'val', 'train_noval', 'all']" in test_config("invalid") 211 …assert "Argument usage with value ['list'] is not of type [<class 'str'>]" in test_config(["list"])
|
D | test_datasets_usps.py | 276 def test_config(usage, path=None): function 287 assert test_config("train") == 3 288 assert test_config("test") == 3 290 assert "usage is not within the valid set of ['train', 'test', 'all']" in test_config("invalid") 291 …assert "Argument usage with value ['list'] is not of type [<class 'str'>]" in test_config(["list"]) 297 assert test_config("train", all_files_path) == 3 298 assert test_config("test", all_files_path) == 3
|
D | test_project.py | 169 def test_config(num, col_order): function 177 assert list(test_config(1, ["col3", "col2", "col1"]).keys()) == ["col3", "col2", "col1"] 178 assert list(test_config(2, ["col1", "col2", "col3"]).keys()) == ["col1", "col2", "col3"] 179 assert list(test_config(3, ["col2", "col3", "col1"]).keys()) == ["col2", "col3", "col1"]
|
/third_party/grpc/test/cpp/interop/ |
D | BUILD | 53 "//test/cpp/util:test_config", 81 "//test/cpp/util:test_config", 101 "//test/cpp/util:test_config", 136 "//test/cpp/util:test_config", 176 "//test/cpp/util:test_config", 196 "//test/cpp/util:test_config", 212 "//test/cpp/util:test_config", 227 "//test/cpp/util:test_config", 243 "//test/cpp/util:test_config",
|
/third_party/grpc/test/cpp/qps/ |
D | BUILD | 65 "//test/cpp/util:test_config", 132 "//test/cpp/util:test_config", 144 "//test/cpp/util:test_config", 166 "//test/cpp/util:test_config", 179 "//test/cpp/util:test_config", 191 "//test/cpp/util:test_config", 210 "//test/cpp/util:test_config",
|
D | qps_benchmark_script.bzl | 49 "//test/cpp/util:test_config", 74 "//test/cpp/util:test_config",
|
/third_party/boost/tools/build/src/ |
D | build_system.py | 248 test_config = None 252 test_config = b2.util.unquote(m.group(1)) 255 if test_config: 256 … where = load_config("test-config", os.path.basename(test_config), [os.path.dirname(test_config)]) 267 if debug_config and not test_config and ignore_site_config: 272 if not test_config and not ignore_site_config: 276 if not test_config:
|
/third_party/grpc/test/core/util/ |
D | BUILD | 55 "test_config.cc", 74 "test_config.h", 137 "//test/cpp/util:test_config",
|
/third_party/grpc/test/cpp/util/ |
D | BUILD | 25 name = "test_config", 30 "test_config.h", 308 ":test_config",
|
/third_party/python/Lib/test/ |
D | cfgparser.1 | 1 # Also used by idlelib.test_idle.test_config.
|
/third_party/openssl/test/ossl_shim/ |
D | build.info | 3 SOURCE[ossl_shim]=ossl_shim.cc async_bio.cc packeted_bio.cc test_config.cc
|
/third_party/flutter/flutter/packages/flutter_test/test/test_config/ |
D | config_test.dart | 8 testConfig('flutter_test_config initializes tests in same folder', '/test_config');
|