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>
15 OperatorBase::HasSingleArgumentOfType<string>(
"value"),
16 "value argument must exist and be passed as a string");
17 value_ = OperatorBase::GetSingleArgument<string>(
"value",
"");
20 bool RunOnDevice()
override {
21 *OperatorBase::Output<std::string>(0) = value_;
Workspace is a class that holds all the related objects created during runtime: (1) all blobs...
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...