blob: 542f268f6c754f042e83fe6a7be024063b3c76d8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "direct_tensor_attribute_executor.h"
#include <vespa/searchlib/tensor/i_tensor_attribute.h>
namespace search::features {
DirectTensorAttributeExecutor::
DirectTensorAttributeExecutor(const ITensorAttribute &attribute)
: _attribute(attribute)
{
}
void
DirectTensorAttributeExecutor::execute(uint32_t docId)
{
outputs().set_object(0, _attribute.get_tensor_ref(docId));
}
}
|