Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tfjs-backend-webgl/src/webgl_util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ export function isReshapeFree(shape1: number[], shape2: number[]): boolean {
}

if (shape1.length !== shape2.length) { // One of the shapes is a vector.
const shape1Cols = shape1.slice(-1)[0];
const shape2Cols = shape2.slice(-1)[0];
const shape1Cols = shape1[shape1.length - 1];
const shape2Cols = shape2[shape2.length - 1];
if (shape1Cols === shape2Cols) {
return true;
}
Expand Down