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

Function main

examples/machine_learning/knn.cpp:93–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93int main(int argc, char **argv) {
94 int device = argc > 1 ? atoi(argv[1]) : 0;
95 bool console = argc > 2 ? argv[2][0] == '-' : false;
96 int perc = argc > 3 ? atoi(argv[3]) : 60;
97
98 try {
99 af::setDevice(device);
100 af::info();
101 knn_demo(console, perc);
102
103 } catch (af::exception &ae) { std::cerr << ae.what() << std::endl; }
104
105 return 0;
106}

Callers

nothing calls this directly

Calls 3

infoFunction · 0.85
knn_demoFunction · 0.85
setDeviceFunction · 0.50

Tested by

no test coverage detected