Install working tensorflow or pytorch via standard conda environment workflow.
The recommended conda-based install process works smoothly:
$ # Create a fresh environment
const repl = require('repl'); | |
const babel = require('babel-core'); | |
function preprocess(input) { | |
const awaitMatcher = /^(?:\s*(?:(?:let|var|const)\s)?\s*([^=]+)=\s*|^\s*)(await\s[\s\S]*)/; | |
const asyncWrapper = (code, binder) => { | |
let assign = binder ? `global.${binder} = ` : ''; | |
return `(function(){ async function _wrap() { return ${assign}${code} } return _wrap();})()`; | |
}; |