| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "sinev_a_allreduce/seq/include/ops_seq.hpp" | ||
| 2 | |||
| 3 | #include <exception> | ||
| 4 | |||
| 5 | #include "sinev_a_allreduce/common/include/common.hpp" | ||
| 6 | // #include "util/include/util.hpp" | ||
| 7 | |||
| 8 | namespace sinev_a_allreduce { | ||
| 9 | |||
| 10 | ✗ | SinevAAllreduceSEQ::SinevAAllreduceSEQ(const InType &in) { | |
| 11 | SetTypeOfTask(GetStaticTypeOfTask()); | ||
| 12 | GetInput() = in; | ||
| 13 | GetOutput() = in; | ||
| 14 | ✗ | } | |
| 15 | |||
| 16 | ✗ | bool SinevAAllreduceSEQ::ValidationImpl() { | |
| 17 | try { | ||
| 18 | return true; | ||
| 19 | } catch (...) { | ||
| 20 | return false; | ||
| 21 | } | ||
| 22 | } | ||
| 23 | |||
| 24 | ✗ | bool SinevAAllreduceSEQ::PreProcessingImpl() { | |
| 25 | ✗ | return true; | |
| 26 | } | ||
| 27 | |||
| 28 | ✗ | bool SinevAAllreduceSEQ::RunImpl() { | |
| 29 | try { | ||
| 30 | GetOutput() = GetInput(); | ||
| 31 | ✗ | return true; | |
| 32 | ✗ | } catch (const std::exception &) { | |
| 33 | return false; | ||
| 34 | ✗ | } | |
| 35 | } | ||
| 36 | |||
| 37 | ✗ | bool SinevAAllreduceSEQ::PostProcessingImpl() { | |
| 38 | ✗ | return true; | |
| 39 | } | ||
| 40 | |||
| 41 | } // namespace sinev_a_allreduce | ||
| 42 |