Skip to main content
Module

x/netsaur/src/core/tensor/util.ts>toShape

Powerful machine learning, accelerated by WebGPU
Go to Latest
function toShape
import { toShape } from "https://deno.land/x/netsaur@0.2.8/src/core/tensor/util.ts";

convert a shape to a given rank.

Parameters

shape: Shape[Rank]
rank: R