summaryrefslogtreecommitdiff
path: root/runtimes/pure_arm_compute/src/internal/op/HashtableLookup.h
blob: 192da2aae74b69649a9536e45b9cc8e61197679a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef __INTERNAL_OP_HASHTABLE_LOOKUP_H__
#define __INTERNAL_OP_HASHTABLE_LOOKUP_H__

#include "internal/op/Node.h"

#include <cstdint>

namespace internal
{
namespace tflite
{
namespace op
{
namespace HashtableLookup
{

struct Param
{
  int32_t output_index;
  int32_t hits_index;

  int32_t lookups_index;
  int32_t values_index;
  int32_t keys_index;

  Param() = default;
  Param(uint32_t inputCount, const uint32_t *inputs, uint32_t outputCount, const uint32_t *outputs);
};

class Node final : public op::Node
{
public:
  Node(const Param &param) : _param(param)
  {
    // DO NOTHING
  }

public:
  virtual ~Node() = default;

public:
  const Param &param(void) const { return _param; }

public:
  void accept(NodeVisitor &&) const override;

private:
  const Param _param;
};

} // namespace HashtableLookup
} // namespace op
} // namespace tflite
} // namespace internal

#endif // __INTERNAL_OP_HASHTABLE_LOOKUP_H__