(self, tensor)
| 3154 | ) |
| 3155 | |
| 3156 | def _convert_to_index_for_coo(self, tensor): |
| 3157 | if isinstance(tensor, self.__type__): |
| 3158 | return int(self.max(tensor)) + 1 |
| 3159 | else: |
| 3160 | return int(np.max(tensor)) + 1 |
| 3161 | |
| 3162 | def coo_matrix(self, data, rows, cols, shape=None, type_as=None): |
| 3163 | if shape is None: |
no test coverage detected