• Y
    Remove `numel` field in tensor · a0ce05df
    Yu Yang 提交于
    * It is duplicated with `dim_`. We can use `dim_` to calculate `numel`
      everytime. It does not cost too much.
    * `numel` is not initialized by constructor. Also, `numel` is hard to
      synchronize with `dim_`.
    
    So just remove it.
    a0ce05df
tensor.h 5.2 KB