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

Function main

examples/machine_learning/perceptron.cpp:120–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

infoFunction · 0.85
perceptron_demoFunction · 0.85
setDeviceFunction · 0.50

Tested by

no test coverage detected