(seq: Sequence[Union[ComplexTensor, torch.Tensor]], *args, **kwargs)
| 184 | |
| 185 | |
| 186 | def stack(seq: Sequence[Union[ComplexTensor, torch.Tensor]], *args, **kwargs): |
| 187 | if not isinstance(seq, (list, tuple)): |
| 188 | raise TypeError( |
| 189 | "stack(): argument 'tensors' (position 1) must be tuple of Tensors, " |
| 190 | "not Tensor" |
| 191 | ) |
| 192 | if isinstance(seq[0], ComplexTensor): |
| 193 | return FC.stack(seq, *args, **kwargs) |
| 194 | else: |
| 195 | return torch.stack(seq, *args, **kwargs) |
no outgoing calls
searching dependent graphs…