aboutsummaryrefslogtreecommitdiff
path: root/tests/LstmCommon.hpp
blob: 0876d263edf101cbcbd356a30cbea9c308f75089 (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
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once

#include <string>
#include <utility>

namespace
{

struct LstmInput
{
    LstmInput(const std::vector<float>& inputSeq,
              const std::vector<float>& stateH,
              const std::vector<float>& stateC)
            : m_InputSeq(inputSeq)
            , m_StateH(stateH)
            , m_StateC(stateC)
    {}

    std::vector<float>        m_InputSeq;
    std::vector<float>        m_StateH;
    std::vector<float>        m_StateC;
};

using LstmInputs = std::pair<std::string, std::vector<LstmInput>>;

} // anonymous namespace