| 85 | } |
| 86 | |
| 87 | Add::Add(const OperationDef& definition, const std::vector<int>& channels, |
| 88 | int dst_channels) |
| 89 | : ElementwiseOperation(definition), |
| 90 | dst_depth_(IntegralDivideRoundUp(dst_channels, 4)) { |
| 91 | src_depthes_.resize(channels.size()); |
| 92 | for (int i = 0; i < channels.size(); ++i) { |
| 93 | src_depthes_[i] = IntegralDivideRoundUp(channels[i], 4); |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | Add::Add(Add&& operation) |
| 98 | : ElementwiseOperation(std::move(operation)), |
no test coverage detected