Function: tensorMetrics()
ts
function tensorMetrics(shape?): [number, number, number];Defined in: ml/model.ts:836
Split a tensor shape into the three quantities a cuboid shows — [channels, height, width]. The last two dims become the visible face and everything before them folds into the thickness, so [64,112,112] is a thin 112×112 slab 64 deep, and [512] is a tall thin bar.
Parameters
| Parameter | Type |
|---|---|
shape? | number[] |
Returns
[number, number, number]