Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.14/src/core/tensor/util.ts";

convert a shape to a given rank.

Parameters

shape: Shape[Rank]
rank: R