()
| 21217 | return this._layout; |
| 21218 | } |
| 21219 | get values() { |
| 21220 | if (this._layout === torch.sparse_coo) { |
| 21221 | return this._values; |
| 21222 | } |
| 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; |
no test coverage detected