Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | - Drop the optimization from long to int and just use long throughout. | Henning Baldersheim | 2024-02-10 | 3 | -14/+13 |
| | | | | - That enables that numeric hashes are also handled efficiently, without resorting to strings. | ||||
* | Reverse the problem to match the interface of TensorAddress.partialCopy | Henning Baldersheim | 2024-02-01 | 1 | -6/+2 |
| | |||||
* | Update abi. | Henning Baldersheim | 2024-02-01 | 1 | -1/+1 |
| | |||||
* | - Use numericLabel over label for address manipulation. | Henning Baldersheim | 2024-02-01 | 4 | -22/+20 |
| | | | | - Only use label when actual string representation is needed. | ||||
* | Limit optimization to bound types, which is the prevalent kind. | Henning Baldersheim | 2024-01-31 | 1 | -23/+27 |
| | |||||
* | - Make separate path for reduction of indexed tensors. | Henning Baldersheim | 2024-01-31 | 1 | -5/+65 |
| | | | | | | | - This brough down reduce time from 60s to 3.7s or a factor of 16x for the splade embedder if using reduce. This is ontop of the 1.5x improvement with https://github.com/vespa-engine/vespa/pull/30112 - A reduce based splade embedder now uses 8.0s vs 7.0s for a custom rolled out version, translated to 14% overhead. Please enter the commit message for your changes. Lines starting | ||||
* | Use already optimize TensorAddress.partialCopy to reduce dimensions. | Henning Baldersheim | 2024-01-30 | 1 | -9/+2 |
| | |||||
* | Minor cleanup | Jon Bratseth | 2024-01-28 | 2 | -6/+6 |
| | |||||
* | Make tensor addresses integer based instead of as strings. | Henning Baldersheim | 2024-01-25 | 4 | -41/+31 |
| | | | | | Positive numbers are direct indexes, while strings that does not represent numbers are enumerated and represented with negative integers. | ||||
* | - Replace usage of putIfAbsent and manual optimizes get-if-not-put with ↵ | Henning Baldersheim | 2024-01-22 | 2 | -8/+5 |
| | | | | computeIfAbsent. | ||||
* | Extract label once. | Henning Baldersheim | 2024-01-22 | 1 | -2/+3 |
| | |||||
* | - Add and use getAsDouble method returning a Double object. It behaves ↵ | Henning Baldersheim | 2024-01-21 | 2 | -8/+11 |
| | | | | | | | similar to Map.get(key). null indicates no value present. Then you avoid 2 lookups to first check if a value is present, and then to fetch that value. This does wonders when it is backed by a map and hashCode/equals are relatively expensive. | ||||
* | - Avoid expensive iteration with hash lookups just for sanity checking in ↵ | Henning Baldersheim | 2024-01-21 | 1 | -3/+5 |
| | | | | | | private MixedTensor constructor. - Refactor so there is less need for sanity checks, and do them in the buiulder instead. | ||||
* | Cache size of intersected sets, as they are recomputed every time. | Henning Baldersheim | 2024-01-21 | 1 | -5/+7 |
| | |||||
* | Make the TensorType.hasXX public and use them other places too. | Henning Baldersheim | 2024-01-21 | 3 | -7/+7 |
| | |||||
* | Skip copying of array when there is no reuse possible. | Henning Baldersheim | 2024-01-18 | 3 | -7/+10 |
| | |||||
* | - Make an tensor.impl package that can be used from other tensor packages ↵ | Henning Baldersheim | 2024-01-18 | 1 | -1/+2 |
| | | | | | | | | | allowing bypass of defensive strategies in the public interfaces. - Move private static inner classes TensorAddress.NumericTensorAddress and TensorAddress.StringTensorAddress to tensor.impl package. - Use the StringTensorAddress.of from Reduce to avoid defensive array copy. | ||||
* | - Add sizeAsInt to allow for safe cast from long to int of the size of a tensor. | Henning Baldersheim | 2024-01-18 | 1 | -1/+1 |
| | |||||
* | Update vespajlib/src/main/java/com/yahoo/tensor/functions/Reduce.java | Henning Baldersheim | 2024-01-18 | 1 | -1/+1 |
| | | | | | Unify whitespace Co-authored-by: Jon Bratseth <bratseth@gmail.com> | ||||
* | Update vespajlib/src/main/java/com/yahoo/tensor/functions/Reduce.java | Henning Baldersheim | 2024-01-18 | 1 | -1/+1 |
| | | | | | Unify whitespace Co-authored-by: Jon Bratseth <bratseth@gmail.com> | ||||
* | Update vespajlib/src/main/java/com/yahoo/tensor/functions/Reduce.java | Henning Baldersheim | 2024-01-18 | 1 | -1/+1 |
| | | | | | Unify whitespace Co-authored-by: Jon Bratseth <bratseth@gmail.com> | ||||
* | Update vespajlib/src/main/java/com/yahoo/tensor/functions/Reduce.java | Henning Baldersheim | 2024-01-18 | 1 | -1/+1 |
| | | | | | Unify whitespace Co-authored-by: Jon Bratseth <bratseth@gmail.com> | ||||
* | Update vespajlib/src/main/java/com/yahoo/tensor/functions/Reduce.java | Henning Baldersheim | 2024-01-18 | 1 | -1/+1 |
| | | | | | Unify whitespace Co-authored-by: Jon Bratseth <bratseth@gmail.com> | ||||
* | Reverse the problem from indexes-to-remove to indexes-to-keep. Then you ↵ | Henning Baldersheim | 2024-01-17 | 1 | -13/+19 |
| | | | | avoid hash lookup in inner loop. | ||||
* | Create set of indexes to remove once. | Henning Baldersheim | 2024-01-17 | 1 | -4/+9 |
| | |||||
* | Allocate a larger hashtable to avoid expensive resize and associated ↵ | Henning Baldersheim | 2024-01-17 | 1 | -1/+1 |
| | | | | equals/hash method calls. | ||||
* | Add string indicators for dimensions with spaces in slice tostring | Lester Solbakken | 2023-12-15 | 1 | -3/+4 |
| | |||||
* | fix toString() and dimensionNames() | Arne Juul | 2023-11-02 | 2 | -3/+3 |
| | |||||
* | add reference implementation of MapSubspaces | Arne Juul | 2023-11-02 | 3 | -1/+202 |
| | |||||
* | Update copyright | Jon Bratseth | 2023-10-09 | 32 | -32/+32 |
| | |||||
* | - Use equals when comparing Optional<Long> | Henning Baldersheim | 2023-09-13 | 3 | -3/+0 |
| | | | | - Minor cleanup | ||||
* | fix dimension size comparison | Arne Juul | 2023-09-13 | 2 | -2/+2 |
| | |||||
* | override type resolving to do some sanity checking | Arne Juul | 2023-06-26 | 2 | -2/+62 |
| | |||||
* | add cosine_similarity | Arne Juul | 2023-06-26 | 1 | -0/+63 |
| | |||||
* | add class comment and test expansion | Arne Juul | 2023-06-26 | 1 | -0/+2 |
| | |||||
* | add euclidean_distance | Arne Juul | 2023-06-26 | 1 | -0/+57 |
| | |||||
* | Build with jdk20 | Jon Bratseth | 2023-04-17 | 1 | -1/+1 |
| | |||||
* | add withTransformedFunctions() to TensorFunction API | Arne Juul | 2023-03-20 | 3 | -0/+47 |
| | |||||
* | expose embedded expressions from DynamicTensor | Arne Juul | 2023-03-17 | 1 | -0/+19 |
| | |||||
* | * make InputRecorder handle slice with embedded expressions | Arne Juul | 2023-03-16 | 1 | -0/+9 |
| | | | | * special handling for Generate and Slice in BindingExtractor | ||||
* | join dimensions must equal common dimensions for optimization | Arne Juul | 2023-03-16 | 1 | -0/+2 |
| | |||||
* | Revert "Revert collect(Collectors.toList())" | Henning Baldersheim | 2022-12-04 | 4 | -5/+5 |
| | |||||
* | Revert collect(Collectors.toList()) | Henning Baldersheim | 2022-12-04 | 4 | -5/+5 |
| | |||||
* | collect(Collectors.toList()) -> toList() | Henning Baldersheim | 2022-12-02 | 4 | -5/+5 |
| | |||||
* | Reduce the simple usage of guava where java has caught up | Henning Baldersheim | 2022-11-30 | 13 | -91/+49 |
| | |||||
* | Return X-Vespa-Ignored-Fields if fields were ignored | Jon Bratseth | 2022-10-06 | 1 | -2/+2 |
| | |||||
* | Compute hash without serializing to string | Jon Bratseth | 2022-03-01 | 25 | -213/+427 |
| | |||||
* | Merge pull request #21459 from vespa-engine/bratseth/slice-type-resolving | Jon Bratseth | 2022-02-28 | 1 | -1/+1 |
|\ | | | | | Pass type context | ||||
| * | Pass type context | Jon Bratseth | 2022-02-28 | 1 | -1/+1 |
| | | |||||
* | | Nicer error message | Jon Bratseth | 2022-02-28 | 1 | -5/+9 |
|/ |