File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -4151,6 +4151,7 @@ class SequentialConvLayer {
4151
4151
// Important to avoid "undefined" class var members inside the timer.
4152
4152
// "this" has another meaning inside the timer.
4153
4153
4154
+ // *** WARNING!!! if you uncomment this line the memory leak will break webGL and may reboot your machine
4154
4155
//document.getElementById("progressBarChild").parentElement.style.visibility = "visible";
4155
4156
4156
4157
return new Promise ( ( resolve , reject ) => {
@@ -4208,14 +4209,16 @@ class SequentialConvLayer {
4208
4209
if ( chIdx == ( self . outChannels - 1 ) ) {
4209
4210
4210
4211
window . clearInterval ( seqTimer ) ;
4211
- //document.getElementById("progressBarChild").style.width = 0 + "%";
4212
+ // *** WARNING!!! if you uncomment this line the memory leak will break webGL and may reboot your machine
4213
+ // document.getElementById("progressBarChild").style.width = 0 + "%";
4212
4214
tf . dispose ( outB ) ;
4213
4215
const endTime = performance . now ( ) ;
4214
4216
const executionTime = endTime - startTime ;
4215
4217
console . log ( `Execution time for output layer: ${ executionTime } milliseconds` ) ;
4216
4218
resolve ( outC ) ;
4217
4219
}
4218
4220
chIdx ++ ;
4221
+ // *** WARNING!!! if you uncomment this line the memory leak will break webGL and may reboot your machine
4219
4222
//document.getElementById("progressBarChild").style.width = (chIdx + 1)*100/self.outChannels + "%";
4220
4223
} , 10 ) ;
4221
4224
} ) ;
You can’t perform that action at this time.
0 commit comments