3 #include "caffe2/operators/conv_op.h" 4 #include "caffe2/operators/conv_pool_op_base.h" 8 template <
typename T,
class Context>
13 for (
auto name : operator_def.input()) {
14 local_input_blobs_.push_back(local_ws_.
CreateBlob(name));
15 CHECK_NOTNULL(local_input_blobs_.back());
18 for (
auto name : operator_def.output()) {
19 local_output_blobs_.push_back(local_ws_.
GetBlob(name));
20 CHECK_NOTNULL(local_output_blobs_.back());
25 bool RunOnDeviceWithOrderNCHW()
override;
26 bool RunOnDeviceWithOrderNHWC()
override;
30 std::vector<Blob*> local_input_blobs_;
31 std::vector<Blob*> local_output_blobs_;
32 std::unique_ptr<ConvOp<T, Context>> local_op_;
Blob * CreateBlob(const string &name)
Creates a blob of the given name.
Workspace is a class that holds all the related objects created during runtime: (1) all blobs...
const Blob * GetBlob(const string &name) const
Gets the blob with the given name as a const pointer.
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...