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

Function main

examples/machine_learning/rbm.cpp:185–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185int main(int argc, char **argv) {
186 int device = argc > 1 ? atoi(argv[1]) : 0;
187 bool console = argc > 2 ? argv[2][0] == '-' : false;
188 int perc = argc > 3 ? atoi(argv[3]) : 60;
189
190 try {
191 af::setDevice(device);
192 af::info();
193 return rbm_demo(console, perc);
194
195 } catch (af::exception &ae) { std::cerr << ae.what() << std::endl; }
196
197 return 0;
198}

Callers

nothing calls this directly

Calls 3

infoFunction · 0.85
rbm_demoFunction · 0.85
setDeviceFunction · 0.50

Tested by

no test coverage detected