Follow comments.

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

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

@ -296,9 +296,9 @@ public:
compareOutputs(); 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: protected:
// only init cpu argument, gpu argument copy from cpu argument. // only init cpu argument, gpu argument copy from cpu argument.

Loading…
Cancel
Save