Skip to main content
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.1/mod.ts";

Serialise a tensor into JSON.

Returns

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