• If we consider the tensor as a 3D array, this function finds the indexes of the maximum element in each subarray of size window.

    tensor - Float32Array of size (width * height * depth). 3D array of input data

    tensorShape - Should be {width, height, depth}

    window - Size of each subarray, in each of which will be found the index of the max element

    output - Float32Array of size (width * height * depth). The index of the max value will be written into this array for each subarray.

    Parameters

    • tensor: Float32Array
    • tensorShape: vec3
    • window: vec3
    • output: Uint32Array

    Returns void