{"_id":"@alminde/tfjs-node","_rev":"2-48af6546edecc4373b8d8cf419648fa6","name":"@alminde/tfjs-node","dist-tags":{"latest":"1.0.0-alpha4"},"versions":{"1.0.0-alpha3":{"name":"@alminde/tfjs-node","version":"1.0.0-alpha3","main":"dist/index.js","types":"dist/index.d.ts","gypfile":true,"repository":{"type":"git","url":"git+https://github.com/tensorflow/tfjs-node.git"},"engines":{"node":">=8.11.0"},"scripts":{"build":"tsc","build-npm":"./scripts/build-npm.sh","clean-deps":"rm -rf deps","coverage":"nyc ts-node src/run_tests.ts","enable-gpu":"node scripts/install.js gpu download && yarn","format":"clang-format -i -style=Google binding/*.cc binding/*.h","install":"node scripts/install.js","link-local":"yalc link","lint":"tslint -p . -t verbose","prep":"cd node_modules/@tensorflow/tfjs-core && yarn && yarn build","publish-local":"yarn prep && yalc push","test":"ts-node src/run_tests.ts"},"devDependencies":{"@types/bindings":"~1.3.0","@types/jasmine":"~2.8.6","@types/node":"^10.5.1","@types/progress":"^2.0.1","@types/rimraf":"~2.0.2","clang-format":"~1.2.2","jasmine":"~3.1.0","nyc":"^12.0.2","shelljs":"^0.8.3","tmp":"^0.0.33","ts-node":"^5.0.1","tslint":"~5.9.1","typescript":"~2.9.2","yalc":"~1.0.0-pre.21"},"dependencies":{"@tensorflow/tfjs":"^1.0.0","adm-zip":"^0.4.11","bindings":"~1.3.0","https-proxy-agent":"^2.2.1","node-fetch":"^2.3.0","progress":"^2.0.0","rimraf":"^2.6.2","tar":"^4.4.6"},"gitHead":"8cbe523f6f31f64d728c5d1f428fb7763fa8057d","description":"<a id=\"travis-badge\" href=\"https://travis-ci.org/tensorflow/tfjs-node\" alt=\"Build Status\">   <img src=\"https://travis-ci.org/tensorflow/tfjs-node.svg?branch=master\" /> </a>","bugs":{"url":"https://github.com/tensorflow/tfjs-node/issues"},"homepage":"https://github.com/tensorflow/tfjs-node#readme","_id":"@alminde/tfjs-node@1.0.0-alpha3","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"alminde","email":"jalminde@me.com"},"dist":{"integrity":"sha512-tG7oFdw3HRprGAglj0mSRba5wzuvhXt4mV3MLysrFif0v11CvPYQIR5rTwFXMmwzgqR4sDuIuVQyiTZRev2AQA==","shasum":"b2b8036f7ed737bc0740800f3f07794e3bfd9b07","tarball":"https://registry.npmjs.org/@alminde/tfjs-node/-/tfjs-node-1.0.0-alpha3.tgz","fileCount":98,"unpackedSize":162456154,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcgzuPCRA9TVsSAnZWagAAEl8P/A4wrX/Wl7vgECUEU7ET\nH+MqB5eJbuzg2KS5sXg753bhXaZWQ8sroX6k6bxwu6JCDGrizgCSSQLJ3bvQ\n8K9ovz9epDp/shwvqTefKLemGS0Wl2zv0+yPCoCFn0YQc56scEg4KphQyG2I\n8Wkb2y8BnenTXhD5tqUDrBhnL1uHBLLrv1GwRr+N98VTY0C98TsyL3fmZ15Q\nnR6dwvLbyVz8o1TSTfjyRxUfli2D4rfvIPCy2G3WHozP8nhhGwqO3P9EBBUx\nbpdb+EKPGCN5soTCrqk7gxAfXQnM50ZxnwmMdGo/H6wHeJCRf7IK95xX1uEn\n98YqVUj4MO2MG+HA5ROH3O6Z3PISIY33+FcNXgeyd7v9qPah0LqxeI0JQfp3\nwlDeZkLS9P9f8bRl4jUD5Krezn8bRQEh/skJI+Kjo0FPcftEMdPK3S625W7Q\ndiJGZXE2gRYhCk47L6F6IoU5zpW87bXmHf3kIyTGdRHqaHte1ajH1K73Ho2o\n2NFj4BEKQXBYK3spG42bu4Wc8+pGH+yFg18hi99xRdAKjlWulp99LrAy5uXB\n8a24fkoHfHSQSMLePOKIoTA91mD84dHdcnUrYMRSLtd7aQAwMvrrrfySrbRI\nIqDCG1Pa9p24XWwQPFbxuB2eFmy+xCF4C8/Ci1gHk07Nb0Bb5SQxQtK4gukf\n1pza\r\n=qWpd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDu6TQUiI3S9h/RQ4sH9RA9bHk/gOYyIlnMgrOmTL8tWwIgLwLh62eqonFwxkg9Ead7rMEGTedCrjb1AY8Uxp6ZJyY="}]},"maintainers":[{"name":"alminde","email":"jalminde@me.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tfjs-node_1.0.0-alpha3_1552104334438_0.2892612043755718"},"_hasShrinkwrap":false},"1.0.0-alpha4":{"name":"@alminde/tfjs-node","version":"1.0.0-alpha4","main":"dist/index.js","types":"dist/index.d.ts","gypfile":true,"repository":{"type":"git","url":"git+https://github.com/tensorflow/tfjs-node.git"},"engines":{"node":">=8.11.0"},"scripts":{"build":"tsc","build-npm":"./scripts/build-npm.sh","clean-deps":"rm -rf deps","coverage":"nyc ts-node src/run_tests.ts","enable-gpu":"node scripts/install.js gpu download && yarn","format":"clang-format -i -style=Google binding/*.cc binding/*.h","install":"node scripts/install.js","link-local":"yalc link","lint":"tslint -p . -t verbose","prep":"cd node_modules/@tensorflow/tfjs-core && yarn && yarn build","publish-local":"yarn prep && yalc push","test":"ts-node src/run_tests.ts"},"devDependencies":{"@types/bindings":"~1.3.0","@types/jasmine":"~2.8.6","@types/node":"^10.5.1","@types/progress":"^2.0.1","@types/rimraf":"~2.0.2","clang-format":"~1.2.2","jasmine":"~3.1.0","nyc":"^12.0.2","shelljs":"^0.8.3","tmp":"^0.0.33","ts-node":"^5.0.1","tslint":"~5.9.1","typescript":"~2.9.2","yalc":"~1.0.0-pre.21"},"dependencies":{"@tensorflow/tfjs":"^1.0.0","adm-zip":"^0.4.11","bindings":"~1.3.0","https-proxy-agent":"^2.2.1","node-fetch":"^2.3.0","progress":"^2.0.0","rimraf":"^2.6.2","tar":"^4.4.6"},"gitHead":"8cbe523f6f31f64d728c5d1f428fb7763fa8057d","description":"<a id=\"travis-badge\" href=\"https://travis-ci.org/tensorflow/tfjs-node\" alt=\"Build Status\">   <img src=\"https://travis-ci.org/tensorflow/tfjs-node.svg?branch=master\" /> </a>","bugs":{"url":"https://github.com/tensorflow/tfjs-node/issues"},"homepage":"https://github.com/tensorflow/tfjs-node#readme","_id":"@alminde/tfjs-node@1.0.0-alpha4","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"alminde","email":"jalminde@me.com"},"dist":{"integrity":"sha512-JEIfu2dca/+MbxQTi03ID3Z901EJvhtbZUfj6iRypivhChJuoVSjfgH8SuKT0HP5FJvHI27dRoAdJX8oOmP4Ow==","shasum":"758fd2f5b2009b3c448b4ab881095efc374f135f","tarball":"https://registry.npmjs.org/@alminde/tfjs-node/-/tfjs-node-1.0.0-alpha4.tgz","fileCount":92,"unpackedSize":508632,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchFniCRA9TVsSAnZWagAAxtUP/jw4jiPoHaBl1H5ej4pN\nMc31k6DTKGNFATAaGyk2CmPXJYWTBWCHnOt/ItSCpnvjIh3d34y4r7gsIpMA\nm8cnOgrOTnDlyTRahAruZMCTeVbWWsIroQT2DPFvzOaKefGtpgEDVqpBXoN2\nJpQG3hSchvaiCocal/BcehdEO7fepOmzTC8eHZveH3Cb9ZyIptK83T6CVrqw\nMp60EXBlEPxHEdqzgdpgkH6gOWz16PoN/mQ/UHROHlzh2B5I7JRYP1fOUzKZ\n0WysZIIyoou57d199h5RRV6htK869YbOrjyTdI/oL9ucz9Io8QJyQkURKTSq\nkdLvmehq10oLGQjkAOtpQYisCg7pz5XE6C1ZnMLbc94hhetOxfR03gozxULS\nMUY/2fjDd2GwVjoKons6vvtP/TGLUBAn+yEW8mGHFgCDPqSXHUZ1PhWujGf5\nU/zT9oDZM+IKTG6RajjXwVnDq+zzWgrnDTzYTVXS2A10ZN9zYtuZP06jIhdM\nYOGXwFeHcTMUyTRuEufpNJT/pMpMmRPrgju3fe/sfFxdJH5ebZDTuBNwEOfu\nOwk4LgvH4Jwa5dY/MePHeUQLDXU96xJlg9bXEZgI9ab5rOn3OQSAnfoCfZKu\n41KliE1ec0T0N8BEU28yhQB/eCgoir61IeouNTVUFXTB7b4/3wU3aa3FQU91\nblpI\r\n=jJ7L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEX9c/peU5WiaKXmGRsAuvWXoKK4m0Pi9MJJ3GmmytFwAiEA8PZG0BPZBtEnG3ZVa/dTrMA0RLrIIbsY42hblKQLWIU="}]},"maintainers":[{"name":"alminde","email":"jalminde@me.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tfjs-node_1.0.0-alpha4_1552177633438_0.03318381224286138"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-09T04:05:34.244Z","1.0.0-alpha3":"2019-03-09T04:05:35.113Z","modified":"2022-04-04T13:36:38.202Z","1.0.0-alpha4":"2019-03-10T00:27:13.683Z"},"maintainers":[{"name":"alminde","email":"jalminde@me.com"}],"description":"<a id=\"travis-badge\" href=\"https://travis-ci.org/tensorflow/tfjs-node\" alt=\"Build Status\">   <img src=\"https://travis-ci.org/tensorflow/tfjs-node.svg?branch=master\" /> </a>","homepage":"https://github.com/tensorflow/tfjs-node#readme","repository":{"type":"git","url":"git+https://github.com/tensorflow/tfjs-node.git"},"bugs":{"url":"https://github.com/tensorflow/tfjs-node/issues"},"readme":"<a id=\"travis-badge\" href=\"https://travis-ci.org/tensorflow/tfjs-node\" alt=\"Build Status\">\n  <img src=\"https://travis-ci.org/tensorflow/tfjs-node.svg?branch=master\" />\n</a>\n\n# TensorFlow backend for TensorFlow.js via Node.js\n\n## Installing\n\nTensorFlow.js for Node currently supports the following platforms:\n- Mac OS X CPU (10.12.6 Siera or higher)\n- Linux CPU (Ubuntu 14.04 or higher)\n- Linux GPU (Ubuntu 14.04 or higher and Cuda 9.0 w/ CUDNN v7) ([see installation instructions](https://www.tensorflow.org/install/install_linux))\n- Windows CPU (Win 7 or higher)\n- Windows GPU (Win 7 or higher and Cuda 9.0 w/ CUDNN v7) ([see installation instructions](https://www.tensorflow.org/install/install_windows))\n\n*Other Linux variants might also work but this project matches [core TensorFlow installation requirements](https://www.tensorflow.org/install/install_linux).*\n\n#### Installing CPU TensorFlow.js for Node:\n\n```sh\nnpm install @tensorflow/tfjs-node\n(or)\nyarn add @tensorflow/tfjs-node\n```\n\n#### Installing Linux/Windows GPU TensorFlow.js for Node:\n\n```sh\nnpm install @tensorflow/tfjs-node-gpu\n(or)\nyarn add @tensorflow/tfjs-node-gpu\n```\n\n#### Windows Requires Python 2.7\n\nWindows build support for `node-gyp` requires Python 2.7. Be sure to have this version before installing `@tensorflow/tfjs-node` or `@tensorflow/tfjs-node-gpu`. Machines with Python 3.x will not install the bindings properly.\n\n*For more troubleshooting on Windows, check out [WINDOWS_TROUBLESHOOTING.md](./WINDOWS_TROUBLESHOOTING.md).*\n\n#### Mac OS X Requires Xcode\n\nIf you do not have Xcode setup on your machine, please run the following commands:\n\n```sh\n$ xcode-select --install\n```\n\nAfter that operation completes, re-run `yarn add` or `npm install` for the `@tensorflow/tfjs-node` package.\n\nYou only need to include `@tensorflow/tfjs-node` or `@tensorflow/tfjs-node-gpu` in the package.json file, since those packages ship with `@tensorflow/tfjs` already.\n\n## Using the binding\n\nBefore executing any TensorFlow.js code, import the node package:\n\n```js\n// Load the binding\nimport * as tf from '@tensorflow/tfjs-node';\n\n// Or if running with GPU:\nimport * as tf from '@tensorflow/tfjs-node-gpu';\n```\n\nNote: you do not need to add the `@tensorflow/tfjs` package to your dependencies or import it directly.\n\n## Development\n\n```sh\n# Download and install JS dependencies, including libtensorflow 1.8.\nyarn\n\n# Run TFJS tests against Node.js backend:\nyarn test\n```\n\n```sh\n# Switch to GPU for local development:\nyarn enable-gpu\n```\n\n\n## MNIST demo for Node.js\n\nSee the [tfjs-examples repository](https://github.com/tensorflow/tfjs-examples/tree/master/mnist-node) for training the MNIST dataset using the Node.js bindings.\n\n### Optional: Build libtensorflow From TensorFlow source\n\nThis requires installing bazel first.\n\n```sh\nbazel build --config=monolithic //tensorflow/tools/lib_package:libtensorflow\n```\n","readmeFilename":"README.md"}