提交 baa1630e 编写于 作者: Z zhangyang

add const attribute

上级 bd9c7c39
...@@ -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.
先完成此消息的编辑!
想要评论请 注册