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

Function main

examples/machine_learning/deep_belief_net.cpp:311–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311int main(int argc, char **argv) {
312 int device = argc > 1 ? atoi(argv[1]) : 0;
313 bool console = argc > 2 ? argv[2][0] == '-' : false;
314 int perc = argc > 3 ? atoi(argv[3]) : 60;
315
316 try {
317 af::setDevice(device);
318 af::info();
319 return dbn_demo(console, perc);
320
321 } catch (af::exception &ae) { std::cerr << ae.what() << std::endl; }
322
323 return 0;
324}

Callers

nothing calls this directly

Calls 3

infoFunction · 0.85
dbn_demoFunction · 0.85
setDeviceFunction · 0.50

Tested by

no test coverage detected