Standard array utilities:
import * as sm from "@shumai/shumai" // create a 1024 by 1024 tensor, randomly filled with normal distribution let X = sm.randn([1024, 1024]) let W = sm.identity(1024) let Y = X.matmul(W) console.log(Y.shape)
Standard array utilities:
import * as sm from "@shumai/shumai" // create a 1024 by 1024 tensor, randomly filled with normal distribution let X = sm.randn([1024, 1024]) let W = sm.identity(1024) let Y = X.matmul(W) console.log(Y.shape)