MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / main

Function main

examples/machine_learning/naive_bayes.cpp:143–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143int main(int argc, char **argv) {
144 int device = argc > 1 ? atoi(argv[1]) : 0;
145 bool console = argc > 2 ? argv[2][0] == '-' : false;
146 int perc = argc > 3 ? atoi(argv[3]) : 60;
147
148 try {
149 af::setDevice(device);
150 af::info();
151 naive_bayes_demo(console, perc);
152
153 } catch (af::exception &ae) { std::cerr << ae.what() << std::endl; }
154
155 return 0;
156}

Callers

nothing calls this directly

Calls 3

infoFunction · 0.85
naive_bayes_demoFunction · 0.85
setDeviceFunction · 0.50

Tested by

no test coverage detected