Home
last modified time | relevance | path

Searched refs:from_file (Results 1 – 25 of 29) sorted by relevance

12

/third_party/boost/libs/serialization/performance/
Dperformance_utf8_codecvt.cpp128 std::vector<wchar_t> from_file; in test_main() local
144 from_file.push_back(item); in test_main()
151 BOOST_CHECK(from_file.size() == sizeof(td::wchar_encoding)/sizeof(wchar_t)); in test_main()
154 BOOST_CHECK(from_file.size() == 6); in test_main()
157 BOOST_CHECK(std::equal(from_file.begin(), from_file.end(), td::wchar_encoding)); in test_main()
165 from_file.begin(), in test_main()
166 from_file.end(), in test_main()
/third_party/boost/libs/detail/test/
Dtest_utf8_codecvt.cpp146 std::vector<wchar_t> from_file; in test_main() local
162 from_file.push_back(item); in test_main()
166 BOOST_TEST(std::equal(from_file.begin(), from_file.end(), td::wchar_encoding)); in test_main()
174 from_file.begin(), in test_main()
175 from_file.end(), in test_main()
/third_party/boost/libs/filesystem/example/
Dmbcopy.cpp35 fs::ifstream from_file( from, std::ios_base::in | std::ios_base::binary ); in copy_file() local
36 if ( !from_file ) { std::cout << "input open failed\n"; return; } in copy_file()
42 while ( from_file.get(c) ) in copy_file()
48 if ( !from_file.eof() ) { std::cout << "read error\n"; } in copy_file()
/third_party/mindspore/tests/ut/python/dataset/
Dtest_sentencepiece_tokenizer.py26 …vocab = text.SentencePieceVocab.from_file([VOCAB_FILE], 5000, 0.9995, SentencePieceModel.UNIGRAM, …
33 …vocab = text.SentencePieceVocab.from_file([VOCAB_FILE], 5000, 0.9995, SentencePieceModel.UNIGRAM, …
45 … vocab = text.SentencePieceVocab.from_file([VOCAB_FILE], 5000, 0.9995, SentencePieceModel.BPE, {})
57 … vocab = text.SentencePieceVocab.from_file([VOCAB_FILE], 5000, 0.9995, SentencePieceModel.CHAR, {})
70 … vocab = text.SentencePieceVocab.from_file([VOCAB_FILE], 5000, 0.9995, SentencePieceModel.WORD, {})
82 …vocab = text.SentencePieceVocab.from_file([VOCAB_FILE], 5000, 0.9995, SentencePieceModel.UNIGRAM, …
94 …vocab = text.SentencePieceVocab.from_file([VOCAB_FILE], 5000, 0.9995, SentencePieceModel.UNIGRAM, …
107 …vocab = text.SentencePieceVocab.from_file([VOCAB_FILE], 5000, 0.9995, SentencePieceModel.UNIGRAM, …
Dtest_nlp.py36 vocab = text.Vocab.from_file(VOCAB_FILE, ",", special_tokens=["<pad>", "<unk>"])
54 vocab = text.Vocab.from_file(VOCAB_FILE, ",")
Dtest_vocab.py52 vocab = text.Vocab.from_file(VOCAB_FILE, ",", None, ["<pad>", "<unk>"], True)
154 …vocab = text.Vocab.from_file(SIMPLE_VOCAB_FILE, vocab_size=vocab_size, special_tokens=special_toke…
/third_party/mindspore/mindspore/dataset/text/
Dutils.py104 …def from_file(cls, file_path, delimiter="", vocab_size=None, special_tokens=None, special_first=Tr… member in Vocab
129 return super().from_file(file_path, delimiter, vocab_size, special_tokens, special_first)
197 def from_file(cls, file_path, vocab_size, character_coverage, model_type, params): member in SentencePieceVocab
234 return super().from_file(file_path, vocab_size, character_coverage,
/third_party/python/Lib/zoneinfo/
D_common.py28 header = _TZifHeader.from_file(fobj)
53 header = _TZifHeader.from_file(fobj)
143 def from_file(cls, stream): member in _TZifHeader
D_zoneinfo.py78 def from_file(cls, fobj, /, key=None): member in ZoneInfo
/third_party/python/Lib/test/test_zoneinfo/
Dtest_zoneinfo.py164 zi_ff = self.klass.from_file(f)
180 zi_ff = self.klass.from_file(f, key=file_key)
186 zi_ff_nk = self.klass.from_file(f)
196 return self.klass.from_file(f)
251 self.klass.from_file(fobj)
558 zi = self.klass.from_file(zf)
597 zi = self.klass.from_file(zf)
634 zi = self.klass.from_file(zf)
678 zi = self.klass.from_file(zf)
697 self.klass.from_file(zf)
[all …]
/third_party/grpc/src/compiler/
Dnode_generator.cc86 std::string GetRelativePath(const std::string& from_file, in GetRelativePath() argument
88 return GetRootPath(from_file, to_file) + to_file; in GetRelativePath()
/third_party/boost/libs/numeric/odeint/
Dfix-copyright.py67 if magic.from_file(filename, mime=True).split('/')[0] == 'text':
/third_party/glib/gio/tests/
Dtls-certificate.c204 from_file (const Reference *ref) in from_file() function
488 &ref, (GTestDataFunc)from_file); in main()
/third_party/python/Lib/xml/etree/
DElementTree.py1743 def canonicalize(xml_data=None, *, out=None, from_file=None, **options): argument
1756 if xml_data is None and from_file is None:
1767 elif from_file is not None:
1768 parse(from_file, parser=parser)
/third_party/python/Doc/library/
Dzoneinfo.rst195 .. classmethod:: ZoneInfo.from_file(fobj, /, key=None)
325 3. ``ZoneInfo.from_file(fobj, /, key=None)``: When constructed from a file, the
Dxml.etree.elementtree.rst507 .. function:: canonicalize(xml_data=None, *, out=None, from_file=None, **options)
518 file-like object (*from_file*) as input, converts it to the canonical
533 canonicalize(from_file="inputfile.xml", out=out_file)
Dzipfile.rst641 .. classmethod:: ZipInfo.from_file(filename, arcname=None, *, \
/third_party/abseil-cpp/absl/synchronization/
Dmutex_test.cc1215 const char *from_file; member
1246 return os << "from: " << param.from_file << ":" << param.from_line
/third_party/protobuf/src/google/protobuf/compiler/js/
Djs_generator.cc237 const FileDescriptor* from_file, in MaybeCrossFileRef() argument
241 from_file != to_message->file()) { in MaybeCrossFileRef()
1265 const FileDescriptor* from_file, in JSExtensionsObjectName() argument
1271 return MaybeCrossFileRef(options, from_file, desc) + ".extensions"; in JSExtensionsObjectName()
/third_party/python/Lib/test/
Dtest_zipfile.py2622 zi = zipfile.ZipInfo.from_file(__file__)
2628 zi = zipfile.ZipInfo.from_file(pathlib.Path(__file__))
2634 zi = zipfile.ZipInfo.from_file(os.fsencode(__file__), 'test')
2641 zi = zipfile.ZipInfo.from_file(f.fileno(), 'test')
2648 zi = zipfile.ZipInfo.from_file(dirpath, 'stdlib_tests')
Dtest_dataclasses.py1782 def from_file(cls, filename): member in TestCase.test_alternate_classmethod_constructor.C
1788 self.assertEqual(C.from_file('filename').x, 20)
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/
Dmutex_test.cc1245 const char *from_file; member
1276 return os << "from: " << param.from_file << ":" << param.from_line
/third_party/boost/tools/build/src/build/
Dvirtual_target.py152 def from_file (self, file, file_location, project): member in VirtualTargetRegistry
Dtargets.py816 self.manager_.virtual_targets ().from_file (
/third_party/python/Lib/
Dzipfile.py491 def from_file(cls, filename, arcname=None, *, strict_timestamps=True): member in ZipInfo
1728 zinfo = ZipInfo.from_file(filename, arcname,

12