提交 82dd3eb8 编写于 作者: qnqinan's avatar qnqinan 提交者: GitHub

Merge pull request #690 from zhangyang0701/develop

add const attribute. close #689
......@@ -257,12 +257,10 @@ class Tensor {
struct FPGAArgs {
float scale;
inline float *scale_pointer() { return &scale; }
inline float *scale_pointer() const { return &scale; }
};
struct FPGAArgs &fpga_args() {
return fpgaArgs_;
}
const struct FPGAArgs &fpga_args() const { return fpgaArgs_; }
#endif
private:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册