【发布时间】:2017-06-08 17:21:31
【问题描述】:
在 Caffe 中的 Python 层的 Euclidean Loss Example 中,有 bottom[0].num 和 bottom[0].count 的用法。
看来两者的意思完全一样。
来自 Caffe blob.hpp,有同名的函数定义为:
inline int count() const { return count_; }
和
inline int num() const { return LegacyShape(0); }
count_ 似乎在跟踪 blob 中的元素数量,这似乎也是 num() 返回的值。
是这样吗?我可以互换使用它们吗?
【问题讨论】: