29 #ifndef LBANN_CALLBACKS_EXPORT_ONNX_HPP_INCLUDED 30 #define LBANN_CALLBACKS_EXPORT_ONNX_HPP_INCLUDED 35 #include <onnx/onnx_pb.h> 37 #include <google/protobuf/message.h> 58 export_onnx(std::string output_filename, std::string debug_string_filename)
61 : std::string(
"lbann.onnx")},
69 std::string
name()
const override {
return "export_onnx"; }
86 std::unique_ptr<callback_base>
88 const std::shared_ptr<lbann_summary>&);
93 #endif // LBANN_CALLBACKS_EXPORT_ONNX_HPP_INCLUDED void write_specific_proto(lbann_data::Callback &proto) const final
std::unique_ptr< callback_base > build_export_onnx_callback_from_pbuf(const google::protobuf::Message &proto_msg, const std::shared_ptr< lbann_summary > &)
std::string m_debug_string_filename
std::string name() const override
Return name of callback.
std::string m_output_filename
Base class for callbacks during training/testing.
Abstract base class for neural network models.
void on_train_end(model *m) override
Called at the end of training.
export_onnx * copy() const override
Copy interface.
Callback to export a trained model to onnx format.
export_onnx(std::string output_filename, std::string debug_string_filename)
export_onnx Constructor.