Skip to content

Instantly share code, notes, and snippets.

2017-08-02 17:26:06,665 ERROR Uncaught exception: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: org.nd4j.linalg.exception.ND4JIllegalStateException: Not enough memory to handle update: [18226632 bytes required]. Please increase memory amount for GradientsAccumulator
2017-08-02 17:26:09,033 ERROR Uncaught exception
java.lang.RuntimeException: org.nd4j.linalg.exception.ND4JIllegalStateException: Not enough memory to handle update: [18226632 bytes required]. Please increase memory amount for GradientsAccumulator
at org.deeplearning4j.optimize.solvers.accumulation.EncodedGradientsAccumulator.registerConsumers(EncodedGradientsAccumulator.java:143)
at org.deeplearning4j.parallelism.ParallelWrapper.fit(ParallelWrapper.java:529)
at se.lth.cs.nlp.EntityRecognizer.NeuralNetwork.NeuralNetwork.train(NeuralNetwork.java:121)
at se.lth.cs.nlp.EntityRecognizer.EntityRecognizer.<init>(EntityRecognizer.java:72)
at se.lth.cs.nlp.EntityRecognizer.EntityRecognizer.main(EntityRecognizer.j
doA()
.then((resultA) => {
return doB(resultA);
})
.then((resultB) => {
// Here I want to access both result A and B
return doC(resultA, resultB);
});
<dom-module id="custom-else">
<template>
<template is="dom-else">
<content></content>
</template>
</template>
<script>
Polymer({ is: 'custom-else' });
</script>
</dom-module>
var getFile = function(req, res, next) {
if (fileExists(file)) {
res.header('Content-Type', 'mimetype');
res.header('Content-disposition','attachment; filename="filename.fileext"');
res.send(binData);
} else {
res.sendStatus(500);
}
};
#!/Ruby193/bin/ruby
require 'cgi'
require 'json'
puts "Content-type: application/json"
puts
post_data = JSON.parse(CGI.new("html4").params)