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

Function main

examples/machine_learning/logistic_regression.cpp:172–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172int main(int argc, char **argv) {
173 int device = argc > 1 ? atoi(argv[1]) : 0;
174 bool console = argc > 2 ? argv[2][0] == '-' : false;
175 int perc = argc > 3 ? atoi(argv[3]) : 60;
176
177 try {
178 af::setDevice(device);
179 af::info();
180 return logit_demo(console, perc);
181
182 } catch (af::exception &ae) { std::cerr << ae.what() << std::endl; }
183
184 return 0;
185}

Callers

nothing calls this directly

Calls 3

infoFunction · 0.85
logit_demoFunction · 0.70
setDeviceFunction · 0.50

Tested by

no test coverage detected