Skip to content

Commit 197addb

Browse files
committed
Fixed cache invalidation bug when constants changed
1 parent 9dc62e3 commit 197addb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/backend/mode_gpu.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@
108108
specialFlags += "Hardcode";
109109
specialFlags += '['+outputDim[0]+','+outputDim[1]+','+outputDim[2]+']';
110110
}
111+
112+
if (opt.constants) {
113+
specialFlags += "Constants";
114+
specialFlags += JSON.stringify(opt.constants);
115+
}
111116

112117
if (specialFlags) {
113118
key = key + '-' + specialFlags;

0 commit comments

Comments
 (0)