This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doA() | |
.then((resultA) => { | |
return doB(resultA); | |
}) | |
.then((resultB) => { | |
// Here I want to access both result A and B | |
return doC(resultA, resultB); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@autobind | |
willEnter(key, style) { | |
const direction = this.previousPage ? -110 : 110; | |
return { | |
translateX: spring(direction, motion), | |
opacity: spring(0, motion), | |
content: this.pages[this.props.currentPage] | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dom-module id="custom-else"> | |
<template> | |
<template is="dom-else"> | |
<content></content> | |
</template> | |
</template> | |
<script> | |
Polymer({ is: 'custom-else' }); | |
</script> | |
</dom-module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/Ruby193/bin/ruby | |
require 'cgi' | |
require 'json' | |
puts "Content-type: application/json" | |
puts | |
post_data = JSON.parse(CGI.new("html4").params) |