calculateFirstParentOutputIndex(firstDimension, outputIndexMultiplier, firstDimensionOutput) {
        const minDimension = Math.min(firstDimension, firstDimensionOutput);
        const result = [];
        let currentOutputIndex = 0;
        for(let i = 0; i < minDimension; ++i, currentOutputIndex += outputIndexMultiplier)result.push(currentOutputIndex);
        for(let i = minDimension; i < firstDimension; ++i)result.push(-1);
        (0, _tfjsCore.util).assert(result.length === firstDimension, ()=>"Final length of result must be equal to firstDimension.");
        return result;
    }
The outputIndex represents the index in the output tensor
where the first element of a particular dimension would be written.
If it is -1, it indicates that the index is out of scope.
Example, given firstDimension = 10, firstDimensionOutput = 6,
and outputIndexMultiplier = 100:
result = [0 100 200 300 400 500 -1 -1 -1 -1]
If firstDimensionOutput = 11 instead, then:
result = [0 100 200 300 400 500 600 700 800 900]