1 #ifndef CAFFE2_OPERATORS_FEED_BLOB_OP_H_ 2 #define CAFFE2_OPERATORS_FEED_BLOB_OP_H_ 4 #include "caffe2/core/context.h" 5 #include "caffe2/core/operator.h" 9 template <
class Context>
12 template <
class... Args>
16 this->
template HasSingleArgumentOfType<string>(
"value"),
17 "value argument must exist and be passed as a string");
18 value_ = this->
template GetSingleArgument<string>(
"value",
"");
21 USE_OPERATOR_CONTEXT_FUNCTIONS;
23 bool RunOnDevice()
override {
24 *this->
template Output<std::string>(0) = value_;
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...