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

Function main

examples/machine_learning/bagging.cpp:124–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124int main(int argc, char **argv) {
125 int device = argc > 1 ? atoi(argv[1]) : 0;
126 bool console = argc > 2 ? argv[2][0] == '-' : false;
127 int perc = argc > 3 ? atoi(argv[3]) : 60;
128
129 try {
130 setDevice(device);
131 af::info();
132 bagging_demo(console, perc);
133
134 } catch (af::exception &ae) { std::cerr << ae.what() << std::endl; }
135
136 return 0;
137}

Callers

nothing calls this directly

Calls 3

infoFunction · 0.85
bagging_demoFunction · 0.85
setDeviceFunction · 0.50

Tested by

no test coverage detected