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

Function main

examples/machine_learning/softmax_regression.cpp:176–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

infoFunction · 0.85
logit_demoFunction · 0.70
setDeviceFunction · 0.50

Tested by

no test coverage detected