You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{Context,F}from'ggml-js/core'// Create context, two 1D tensors and multiply themconstctx=Context.init()consta=ctx.newTensor1D('f32',1)constb=ctx.newTensor1D('f32',1)constab=F.mul(a,b)// Build the computation graphconstgraph=ctx.buildForward(ab)// Set values & compute the grapha.set(0,1.5)b.set(0,2)graph.compute()// Get resultconsole.log(ab.get(0))
using node.js 20.0.2, tried node 18 too. I am on mac OS 13.4
The text was updated successfully, but these errors were encountered:
I am getting
I am running just the sample from the readme:
using node.js 20.0.2, tried node 18 too. I am on mac OS 13.4
The text was updated successfully, but these errors were encountered: