Follow comments.

gangliao-patch-1
hedaoyuan 8 years ago
parent 2608c48542
commit c6e010d0dd

@ -104,19 +104,11 @@ public:
protected:
size_t getFilterHeight(const TensorShape& filter) const {
if (filter.ndims() == 5) {
return filter[3];
} else {
return filter[2];
}
filter[filter.ndims() - 2];
}
size_t getFilterWidth(const TensorShape& filter) const {
if (filter.ndims() == 5) {
return filter[4];
} else {
return filter[3];
}
filter[filter.ndims() - 1];
}
std::vector<size_t> strides_;

@ -296,9 +296,9 @@ public:
compareOutputs();
}
std::shared_ptr<FunctionBase> getCpuFunction() const { return function1_; }
std::shared_ptr<FunctionBase> getFunction1() const { return function1_; }
std::shared_ptr<FunctionBase> getGpuFunction() const { return function2_; }
std::shared_ptr<FunctionBase> getFunction2() const { return function2_; }
protected:
// only init cpu argument, gpu argument copy from cpu argument.

Loading…
Cancel
Save