You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

concat.py 425 B

1234567891011121314
  1. from typing import Iterable
  2. from ..functional import concat
  3. from ..tensor import Tensor
  4. from .module import Module
  5. class Concat(Module):
  6. r"""A :class:`~.Module` to do functional :func:`~.concat`. Could be replaced with :class:`~.QATModule`
  7. version :class:`~.qat.Concat` using :func:`~.quantize.quantize_qat`.
  8. """
  9. def forward(self, inps: Iterable[Tensor], axis: int = 0):
  10. return concat(inps, axis)