| 142 | } |
| 143 | |
| 144 | void TensorSlice::AsProto(TensorSliceProto* proto) const { |
| 145 | for (int d = 0; d < dims(); ++d) { |
| 146 | TensorSliceProto::Extent* e = proto->add_extent(); |
| 147 | // We only need to record the explicit slice for non-full slices |
| 148 | if (!IsFullAt(d)) { |
| 149 | e->set_start(starts_[d]); |
| 150 | e->set_length(lengths_[d]); |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | string TensorSlice::DebugString() const { |
| 156 | string buffer; |
nothing calls this directly
no test coverage detected