()
| 21223 | throw new python.Error(`Unsupported values in layout'${this._layout.__str__()}'.`); |
| 21224 | } |
| 21225 | get indices() { |
| 21226 | if (this._layout === torch.sparse_coo) { |
| 21227 | return this._indices; |
| 21228 | } |
| 21229 | throw new python.Error(`Unsupported indices in layout'${this._indices.__str__()}'.`); |
| 21230 | } |
| 21231 | get is_quantized() { |
| 21232 | return this.__quantized__ === true; |
| 21233 | } |