aboutsummaryrefslogtreecommitdiffstats
path: root/model-integration/src/main/java/ai/vespa/modelintegration/evaluator/TensorConverter.java
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2024-01-18 23:39:52 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2024-01-18 23:39:52 +0100
commitac42a2d1ab601e0b494fdbee46e96fc92c00fe13 (patch)
tree7ecdb07411934e3cf97b8dd8e1c194c956e7343b /model-integration/src/main/java/ai/vespa/modelintegration/evaluator/TensorConverter.java
parent2a66025fe93b39f8d87201ceafe48345f7a4dc3f (diff)
Since both value and log(value) are monotonically increasing for value >= 1,
we can just gather max(value) and do log at the end. Avoiding general Math.max which seems to have very costly NaN handling was quite benefiscal.
Diffstat (limited to 'model-integration/src/main/java/ai/vespa/modelintegration/evaluator/TensorConverter.java')
0 files changed, 0 insertions, 0 deletions