diff options
author | Arne Juul <arnej@yahoo-inc.com> | 2018-03-05 07:52:13 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahoo-inc.com> | 2018-03-05 07:52:13 +0000 |
commit | c91ecb2f8971f11bc7a5051c09ae87361b66089d (patch) | |
tree | c0bb7705ef0df89b0f088c2f4c35a838b1042041 /eval | |
parent | f6fdd695edb9e06c5671df849fec75984e07b43a (diff) |
use more descriptive method names (for profiling)
Diffstat (limited to 'eval')
-rw-r--r-- | eval/src/vespa/eval/tensor/dense/dense_dot_product_function.cpp | 4 | ||||
-rw-r--r-- | eval/src/vespa/eval/tensor/dense/dense_xw_product_function.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/eval/src/vespa/eval/tensor/dense/dense_dot_product_function.cpp b/eval/src/vespa/eval/tensor/dense/dense_dot_product_function.cpp index 7985b59da56..ae217935fd9 100644 --- a/eval/src/vespa/eval/tensor/dense/dense_dot_product_function.cpp +++ b/eval/src/vespa/eval/tensor/dense/dense_dot_product_function.cpp @@ -24,7 +24,7 @@ CellsRef getCellsRef(const eval::Value &value) { return denseTensor.cellsRef(); } -void my_op(eval::InterpretedFunction::State &state, uint64_t param) { +void my_dot_product_op(eval::InterpretedFunction::State &state, uint64_t param) { auto *hw_accelerator = (hwaccelrated::IAccelrated *)(param); DenseTensorView::CellsRef lhsCells = getCellsRef(state.peek(1)); DenseTensorView::CellsRef rhsCells = getCellsRef(state.peek(0)); @@ -56,7 +56,7 @@ DenseDotProductFunction::DenseDotProductFunction(const eval::TensorFunction &lhs eval::InterpretedFunction::Instruction DenseDotProductFunction::compile_self(Stash &) const { - return eval::InterpretedFunction::Instruction(my_op, (uint64_t)(_hwAccelerator.get())); + return eval::InterpretedFunction::Instruction(my_dot_product_op, (uint64_t)(_hwAccelerator.get())); } const TensorFunction & diff --git a/eval/src/vespa/eval/tensor/dense/dense_xw_product_function.cpp b/eval/src/vespa/eval/tensor/dense/dense_xw_product_function.cpp index fa07028ef27..24b1d8abfcf 100644 --- a/eval/src/vespa/eval/tensor/dense/dense_xw_product_function.cpp +++ b/eval/src/vespa/eval/tensor/dense/dense_xw_product_function.cpp @@ -58,7 +58,7 @@ void transposedProduct(const DenseXWProductFunction::Self &self, } template <bool commonDimensionInnermost> -void my_op(eval::InterpretedFunction::State &state, uint64_t param) { +void my_xw_product_op(eval::InterpretedFunction::State &state, uint64_t param) { DenseXWProductFunction::Self *self = (DenseXWProductFunction::Self *)(param); CellsRef vectorCells = getCellsRef(state.peek(1)); @@ -129,7 +129,7 @@ eval::InterpretedFunction::Instruction DenseXWProductFunction::compile_self(Stash &stash) const { Self &self = stash.create<Self>(result_type(), _vectorSize, _resultSize); - auto op = _commonDimensionInnermost ? my_op<true> : my_op<false>; + auto op = _commonDimensionInnermost ? my_xw_product_op<true> : my_xw_product_op<false>; return eval::InterpretedFunction::Instruction(op, (uint64_t)(&self)); } |