We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb19788 commit 8588f3fCopy full SHA for 8588f3f
1 file changed
include/layers/BinaryOpLayer.hpp
@@ -54,8 +54,12 @@ class BinaryOpLayer::BinaryOpLayerImpl : public LayerImpl<ValueType> {
54
public:
55
BinaryOpLayerImpl() = delete;
56
explicit BinaryOpLayerImpl(BinaryOpLayer::Operation op);
57
- BinaryOpLayerImpl(const BinaryOpLayerImpl&) = default;
58
- BinaryOpLayerImpl& operator=(const BinaryOpLayerImpl&) = default;
+
+ 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
+ }
63
64
std::vector<ValueType> run(const std::vector<ValueType>& inputA,
65
const std::vector<ValueType>& inputB) const;
0 commit comments