MCPcopy Create free account
hub / github.com/Tencent/TNN / CheckFileName

Function CheckFileName

tools/quantization/quantize.cc:167–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167bool CheckFileName(std::string name) {
168 std::ofstream write_stream;
169 write_stream.open(name);
170 if (!write_stream || !write_stream.is_open() || !write_stream.good()) {
171 write_stream.close();
172 return false;
173 }
174 write_stream.close();
175 return true;
176}
177
178void PrintConfig() {
179 printf(

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected