MCPcopy Create free account
hub / github.com/clab/dynet / ExecTest

Method ExecTest

tests/test-exec.cc:21–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20struct ExecTest {
21 ExecTest() {
22 // initialize if necessary
23 if (default_device == nullptr) {
24 for (auto x : {"ExecTest", "--dynet-seed", "10", "--dynet-mem", "10"}) {
25 av.push_back(strdup(x));
26 }
27 ADD_EXTRA_ARGUMENTS(av)
28 char **argv = &av[0];
29 int argc = av.size();
30 dynet::initialize(argc, argv);
31 }
32 }
33 ~ExecTest() {
34 // This was causing double deallocation errors?
35 // for (auto x : av) free(x);

Callers

nothing calls this directly

Calls 2

initializeFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected