blob: c2c4f7242842eda9d78f800e2df6580d56b27637 (
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
|
#include "internal/op/SquaredDifference.h"
#include "internal/op/NodeVisitor.h"
#include <cassert>
namespace internal
{
namespace tflite
{
namespace op
{
namespace SquaredDifference
{
void Node::accept(NodeVisitor &&v) const { v.visit(*this); }
} // namespace SquaredDifference
} // namespace op
} // namespace tflite
} // namespace internal
namespace internal
{
namespace tflite
{
namespace op
{
namespace SquaredDifference
{
Param::Param(uint32_t inputCount, const uint32_t *inputs, uint32_t outputCount,
const uint32_t *outputs)
{
assert(inputCount == 3 && outputCount == 1);
ofm_index = outputs[0];
// Each input should be interpreted as follows:
//
// 0 -> LHS Tensor Index
// 1 -> RHS Tensor Index
// 2 -> Activation Index
lhs_index = inputs[0];
rhs_index = inputs[1];
activation_index = inputs[2];
}
} // namespace SquaredDifference
} // namespace op
} // namespace tflite
} // namespace internal
|