Skip to content

Commit cb9b040

Browse files
committed
Resolved errors introduced by include-what-you-use and various other PRs
1 parent 41766ae commit cb9b040

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

include/lbann/operators/declare_stateless_op.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
} \
141141
void do_fill_description(description&) const final \
142142
{} \
143-
}
143+
};
144144

145145
namespace lbann {
146146

include/lbann/operators/math/binary_with_constant.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "lbann/utils/cloneable.hpp"
3434

3535
#ifdef LBANN_HAS_ONNX
36-
#include <onnx/onnx-ml.pb.h>
36+
#include <onnx/onnx_pb.h>
3737
#endif // LBANN_HAS_ONNX
3838

3939

@@ -163,6 +163,7 @@ LBANN_DECLARE_BINARY_WITH_CONSTANT_OPERATOR(GreaterEqualConstant,
163163
LBANN_DECLARE_BINARY_WITH_CONSTANT_OPERATOR(GreaterConstant,
164164
"greater than constant");
165165

166+
#ifdef LBANN_HAS_ONNX
166167
inline onnx::NodeProto get_constant_node(float val)
167168
{
168169
onnx::NodeProto const_node;
@@ -307,6 +308,7 @@ get_onnx_nodes_impl(GreaterEqualConstantOperator<T, D> const op)
307308
nodes.back().set_op_type("PreConstant");
308309
return nodes;
309310
}
311+
#endif // LBANN_HAS_ONNX
310312

311313
} // namespace lbann
312314
#endif // LBANN_INCLUDE_LBANN_OPERATORS_BINARY_WITH_CONSTANT_HPP_INCLUDED

0 commit comments

Comments
 (0)