6 #ifndef IMAGE_DEEP_FEATURE_EXTRACTOR_TOOLKIT_HPP 7 #define IMAGE_DEEP_FEATURE_EXTRACTOR_TOOLKIT_HPP 11 #include <toolkits/image_deep_feature_extractor/image_feature_extractor.hpp> 12 #include <core/data/sframe/gl_sframe.hpp> 13 #include <model_server/lib/extensions/ml_model.hpp> 14 #include <model_server/lib/toolkit_class_macros.hpp> 18 namespace image_deep_feature_extractor {
21 class EXPORT image_deep_feature_extractor_toolkit :
public ml_model_base {
24 image_deep_feature_extractor_toolkit() { };
26 void init_options(
const std::map<std::string, flexible_type>& options)
override;
28 gl_sarray extract_features(gl_sframe data,
const std::string& column_name,
bool verbose,
size_t batch_size)
const;
29 gl_sarray sarray_extract_features(gl_sarray data,
bool verbose,
size_t batch_size)
const;
31 inline size_t get_version()
const override {
return -1; }
34 log_and_throw(
"Model serialization is not support for this model");
38 log_and_throw(
"Model serialization is not support for this model");
51 std::unique_ptr<image_feature_extractor> m_feature_extractor;
59 #endif // IMAGE_DEEP_FEATURE_EXTRACTOR_TOOLKIT_HPP #define BEGIN_CLASS_MEMBER_REGISTRATION(python_facing_classname)
#define REGISTER_CLASS_MEMBER_FUNCTION(function,...)
The serialization input archive object which, provided with a reference to an istream, will read from the istream, providing deserialization capabilities.
#define END_CLASS_MEMBER_REGISTRATION
The serialization output archive object which, provided with a reference to an ostream, will write to the ostream, providing serialization capabilities.