26 template <
typename T,
class Context,
class Engine = caffe2::DefaultEngine>
31 TcCopyOp(
const caffe2::OperatorDef& operator_def, caffe2::Workspace* ws)
32 :
TcOp<T, Context, Engine>(operator_def, ws) {}
38 this->
tcName_ = tc::COPY_TC_NAME;
48 .mapToThreads({32, 4, 4})
49 .mapToBlocks({100, 100, 100})
tc::MappingOptions mappingOptions_
Definition: tc_op.h:133
void setupNaiveMappingOptions() override
Definition: copy_op.h:45
std::string gradTc_
Definition: tc_op.h:129
std::string makeCopyTc(int numDims)
Definition: copy.h:58
std::string gradTcName_
Definition: tc_op.h:131
TcCopyOp(const caffe2::OperatorDef &operator_def, caffe2::Workspace *ws)
Definition: copy_op.h:31
std::string tc_
Definition: tc_op.h:128
std::string tcName_
Definition: tc_op.h:130
static constexpr auto description
Definition: copy_op.h:29
virtual bool RunOnDevice() override
Definition: tc_op.h:93
MappingOptions & tile(const std::vector< uint64_t > &sizes)
Definition: mapping_options-inl.h:251
std::string makeCopyGradTc(int numDims)
Definition: copy.h:62
static MappingOptions makePointwiseMappingOptions()
bool RunOnDevice() override
Definition: copy_op.h:36
~TcCopyOp() override
Definition: copy_op.h:34
tc::MappingOptions gradMappingOptions_
Definition: tc_op.h:134