Skip to content

Commit

Permalink
fix memory
Browse files Browse the repository at this point in the history
  • Loading branch information
Mmasoud1 committed Feb 4, 2024
1 parent 8e45ec7 commit 87ebc94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/brainchop/mainMeshNetFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4204,7 +4204,7 @@ class SequentialConvLayer {
}


}, 10);
}, 50);
});

}
Expand Down Expand Up @@ -4354,7 +4354,7 @@ function convByOutputChannelAndInputSlicing(input, filter, biases, stride, pad,
res.layers[i].dilationRate,
3); // important for memory use
}

// Log memory usage
const memoryInfo = tf.memory();
console.log(`Iteration ${i}:`);
Expand Down Expand Up @@ -4429,7 +4429,7 @@ function convByOutputChannelAndInputSlicing(input, filter, biases, stride, pad,
// The second parameter is important for memory,
// the larger it is, the more memory it uses
// it was 8, but I set it to 3, got a different error
seqConvLayer = new SequentialConvLayer(res, 4, isChannelLast);
seqConvLayer = new SequentialConvLayer(res, 3, isChannelLast);

// Apply the last output tensor to the seq. instance
let outputTensor = null;
Expand Down Expand Up @@ -4853,7 +4853,7 @@ function convByOutputChannelAndInputSlicing(input, filter, biases, stride, pad,
//The second parameter is important for memory,
// the larger it is, the more memory it uses
// it was 8, but I set it to 3, got a different error
seqConvLayer = new SequentialConvLayer(res, 4, isChannelLast);
seqConvLayer = new SequentialConvLayer(res, 3, isChannelLast);


// Apply the last output tensor to the seq. instance
Expand Down

0 comments on commit 87ebc94

Please sign in to comment.