Overloads the equality operator to call comparisons between Buffer objects. Calls the BufferNodeBase equality operator if the other object is also a Buffer Node
| 112 | /// objects. Calls the BufferNodeBase equality operator if the other |
| 113 | /// object is also a Buffer Node |
| 114 | bool operator==(const common::Node &other) const noexcept final { |
| 115 | if (other.isBuffer()) { |
| 116 | return *this == |
| 117 | static_cast<const BufferNodeBase<DataType, ParamType> &>( |
| 118 | other); |
| 119 | } |
| 120 | return false; |
| 121 | } |
| 122 | |
| 123 | virtual void modDims(const af::dim4 &newDim) override { |
| 124 | af::dim4 strides(1, 1, 1, 1); |