8000 use shared util func · tensorflow/tfjs-core@b91f1d9 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Aug 15, 2019. It is now read-only.

Commit b91f1d9

Browse files
committed
use shared util func
1 parent efec5f5 commit b91f1d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backends/webgl/shader_compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ function getPackedSampler3D(inputInfo: InputInfo): string {
908908
const funcName = 'get' + texName.charAt(0).toUpperCase() + texName.slice(1);
909909

910910
if (shape[0] === 1) {
911-
const squeezedShape = shape.slice(1);
911+
const squeezedShape = util.packedShapeTransform(shape);
912912
const keptDims = [1, 2];
913913
const newInputInfo = squeezeInputInfo(inputInfo, squeezedShape);
914914
const params = ['b', 'row', 'col'];

0 commit comments

Comments
 (0)
0