Skip to content

Commit 8588f3f

Browse files
committed
override impl run
1 parent eb19788 commit 8588f3f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

include/layers/BinaryOpLayer.hpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,12 @@ class BinaryOpLayer::BinaryOpLayerImpl : public LayerImpl<ValueType> {
5454
public:
5555
BinaryOpLayerImpl() = delete;
5656
explicit BinaryOpLayerImpl(BinaryOpLayer::Operation op);
57-
BinaryOpLayerImpl(const BinaryOpLayerImpl&) = default;
58-
BinaryOpLayerImpl& operator=(const BinaryOpLayerImpl&) = default;
57+
58+
std::vector<ValueType> run(
59+
const std::vector<ValueType>& input) const override {
60+
(void)input;
61+
throw std::runtime_error("BinaryOpLayer requires two inputs");
62+
}
5963

6064
std::vector<ValueType> run(const std::vector<ValueType>& inputA,
6165
const std::vector<ValueType>& inputB) const;

0 commit comments

Comments
 (0)