(loc, m)
| 16070 | return this; |
| 16071 | } |
| 16072 | len(loc, m) { |
| 16073 | if (this._static_len) { |
| 16074 | return torch._C.insertConstant(m.graph(), this._static_len, loc); |
| 16075 | } |
| 16076 | if (this._has_only_end) { |
| 16077 | return this._end; |
| 16078 | } |
| 16079 | const g = m.graph(); |
| 16080 | return g.insert('aten::__range_length', [this._start, this._end, this._step], [], loc); |
| 16081 | } |
| 16082 | getitem(loc, m, idx /*, type_hint */) { |
| 16083 | if (this._has_only_end) { |
| 16084 | return new torch._C.SimpleValue(idx); |
no test coverage detected