MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Add

Method Add

tensorflow/lite/delegates/gpu/cl/kernels/add.cc:87–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87Add::Add(const OperationDef& definition, const std::vector<int>& channels,
88 int dst_channels)
89 : ElementwiseOperation(definition),
90 dst_depth_(IntegralDivideRoundUp(dst_channels, 4)) {
91 src_depthes_.resize(channels.size());
92 for (int i = 0; i < channels.size(); ++i) {
93 src_depthes_[i] = IntegralDivideRoundUp(channels[i], 4);
94 }
95}
96
97Add::Add(Add&& operation)
98 : ElementwiseOperation(std::move(operation)),

Callers 2

InitializeMethod · 0.45

Calls 3

IntegralDivideRoundUpFunction · 0.50
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected