未验证 提交 81fd9018 编写于 作者: qnqinan's avatar qnqinan 提交者: GitHub

Merge pull request #690 from zhangyang0701/develop

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