Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ArrayList<Thread> myThreads = new ArrayList<Thread>();
for each epoch {
net.fit(trainSplitDataSetIterator);
Thread t = new Thread(new MYClass(net)); // The MYClass will use net to calculate some scores; it doesn't modify/update net
myThreads.add(t);
t.start();
}
for (Thread t:myThreads) {
t.join();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.