MCPcopy Create free account
hub / github.com/espnet/espnet / stack

Function stack

espnet2/enh/layers/complex_utils.py:186–195  ·  view source on GitHub ↗
(seq: Sequence[Union[ComplexTensor, torch.Tensor]], *args, **kwargs)

Source from the content-addressed store, hash-verified

184
185
186def 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)

Callers 2

apply_beamformingMethod · 0.90
test_stackFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_stackFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…