MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / main

Function main

examples/cpp/bert/bert_triton_example.cc:284–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282template int bert_triton_example<half>(int argc, char* argv[]);
283
284int main(int argc, char* argv[])
285{
286 std::string ini_name = argc >= 2 ? std::string(argv[1]) : "../examples/cpp/bert/bert_config.ini";
287 INIReader reader = INIReader(ini_name);
288 if (reader.ParseError() < 0) {
289 std::cout << "[ERROR] Can't load '" << ini_name << "'\n";
290 ft::FT_CHECK(false);
291 }
292
293 const std::string data_type = reader.Get("ft_instance_hyperparameter", "data_type");
294 if (data_type == "fp32") {
295 bert_triton_example<float>(argc, argv);
296 }
297 else if (data_type == "fp16") {
298 bert_triton_example<half>(argc, argv);
299 }
300
301 return 0;
302}

Callers

nothing calls this directly

Calls 3

INIReaderClass · 0.85
ParseErrorMethod · 0.80
GetMethod · 0.80

Tested by

no test coverage detected