mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 09:13:01 +00:00
finish comment
...oops
This commit is contained in:
parent
a7a475dcd1
commit
4b2e418ddc
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ export default async function array2d_pool(channels, operator="max") {
|
||||||
if(operator !== "max")
|
if(operator !== "max")
|
||||||
throw new Error(`Error: Unknown operator '${operator}. At present only the 'max' operator is supported.`);
|
throw new Error(`Error: Unknown operator '${operator}. At present only the 'max' operator is supported.`);
|
||||||
|
|
||||||
// This is rather a hack to save time. Tensorflow.js is not needed here, but may result in increased speed. It may be worth rolling this out to the rest of the codebase, thinking about it. While Tensorflow.js hasmany bugs, this only extends to the machine learning / loss functions / models etc and not the
|
// This is rather a hack to save time. Tensorflow.js is not needed here, but may result in increased speed. It may be worth rolling this out to the rest of the codebase, thinking about it. While Tensorflow.js has many bugs, this only extends to the machine learning / loss functions / models etc and not the fundamental operations.
|
||||||
const result_tensor = tf.tidy(() => {
|
const result_tensor = tf.tidy(() => {
|
||||||
const tensor = tf.tensor(channels);
|
const tensor = tf.tensor(channels);
|
||||||
return tf.max(tensor, 0, false);
|
return tf.max(tensor, 0, false);
|
||||||
|
|
Loading…
Reference in a new issue