Comments (3)
When i run this file
import { tensor } from '@tensorflow/tfjs-core';
tensor([Math.random()]).toString();
it throws this same error in both node.js and bun run
. It doesn't appear intentional that tfjs-core, without one of the backend packages, will "just work"
just checked. they say this on their npm page for this package.
Note: If you are only importing the Core API, you also need to import a backend (e.g., tfjs-backend-cpu, tfjs-backend-webgl, tfjs-backend-wasm).
you likely want to use https://www.npmjs.com/package/@tensorflow/tfjs-node instead
not a bug in bun.
from bun.
i completely misread, it is a bundler issue.
from bun.
doesn't happen here so it does feel likely to the todo comment
![image](https://private-user-images.githubusercontent.com/24465214/306822292-7f72f3f4-842a-4b50-be58-a744b4e6ddb4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2Nzk1NDcsIm5iZiI6MTcxOTY3OTI0NywicGF0aCI6Ii8yNDQ2NTIxNC8zMDY4MjIyOTItN2Y3MmYzZjQtODQyYS00YjUwLWJlNTgtYTc0NGI0ZTZkZGI0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI5VDE2NDA0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA5YWFhZTFmMmJlN2U5YjgxNWQyZWRkZTgxNWVjMDEwYWRjMDBjMWVmNDMyODRkOTAxZmNlNTlmMjgyN2YyY2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.3EGLsUhaN1xyo8uL01CgUAcc4R4RrlWZK22Ugz9DvGM)
from bun.
Related Issues (20)
- How to use `vite.createServer` with `Bun.serve`? HOT 1
- puppeteer with proxy doesn't work
- Weird runtime behavior when sending many HTTP requests at the same time (limit of 256) HOT 1
- Values in `bunfig.toml` take precedence over command line args HOT 1
- Bun will not run correctly in child processes
- Non-ASCII bug on Bun Shell
- run docker images with bun,the container crashed.
- Quotation marks ignored for arguments when running `package.json` scripts | `'foo bar'` -> `foo`, `bar`
- Fastify-Plugin with NestJS extract plugin name error
- Repl crashes immediately on macOS HOT 2
- `bun build` output diff from local machine and ci HOT 1
- Bun remove global package does not remove all files
- Bun crashes on Windows when trying to run install HOT 5
- Selected option is not highlighted
- bun:ffi silently fails
- Error While Running Next.js Application with Bun Runtime
- Guide for GitHub Actions may be outdated
- Bunx force update cache
- Bun crashing upon serving a Bun.file() inside a promise.
- bun:test with `--bail` and `afterAll` hook
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bun.