Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/netsaur/mod.ts>Tensor#toJSON

Powerful machine learning, accelerated by WebGPU
Go to Latest
method Tensor.prototype.toJSON
Re-export
import { Tensor } from "https://deno.land/x/netsaur@0.3.2-patch/mod.ts";

Serialise a tensor into JSON.

Returns

{ data: number[]; shape: Shape<R>; }