MCPcopy Create free account
hub / github.com/tensorflow/tfjs / getSliceBeginCoords

Function getSliceBeginCoords

tfjs-core/src/ops/array_ops_util.ts:125–132  ·  view source on GitHub ↗
(
    crops: number[][], blockShape: number)

Source from the content-addressed store, hash-verified

123 * operation.
124 */
125export function getSliceBeginCoords(
126 crops: number[][], blockShape: number): number[] {
127 const sliceBeginCoords = [0];
128 for (let i = 0; i < blockShape; ++i) {
129 sliceBeginCoords.push(crops[i][0]);
130 }
131 return sliceBeginCoords;
132}
133
134/**
135 * Converts the crops argument into the size of a slice operation. When

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…