summaryrefslogtreecommitdiff
path: root/runtimes/pure_arm_compute/src/internal/op/SquaredDifference.h
blob: 7760405b9793187814d70198251ab23f54600b77 (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
#ifndef __INTERNAL_OP_SQUAREDDIFFERENCE_H__
#define __INTERNAL_OP_SQUAREDDIFFERENCE_H__

#include "internal/op/Node.h"

#include <cstdint>

namespace internal
{
namespace tflite
{
namespace op
{
namespace SquaredDifference
{

struct Param
{
  int32_t ofm_index;

  int32_t lhs_index;
  int32_t rhs_index;
  int32_t activation_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 SquaredDifference
} // namespace op
} // namespace tflite
} // namespace internal

#endif // __INTERNAL_OP_SQUAREDDIFFERENCE_H__