You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> S = structures.Sequence.from_tensor(letters_hv)
625
+
>>> S = structures.BundleSequence.from_tensor(letters_hv)
626
626
627
627
"""
628
-
value=functional.sequence(input)
628
+
value=functional.bundle_sequence(input)
629
629
returncls(value, size=input.size(-2))
630
630
631
631
632
-
classDistinctSequence:
633
-
"""Hypervector-based distinct (binding-based) sequence data structure.
632
+
classBindSequence:
633
+
"""Hypervectorbinding-based sequence data structure.
634
634
635
635
Creates an empty sequence of dim dimensions or from an input tensor.
636
636
637
637
Args:
638
-
dimensions (int): number of dimensions of the distinct sequence.
638
+
dimensions (int): number of dimensions of the sequence.
639
639
dtype (``torch.dtype``, optional): the desired data type of returned tensor. Default: if ``None``, uses a global default (see ``torch.set_default_tensor_type()``).
640
640
device (``torch.device``, optional): the desired device of returned tensor. Default: if ``None``, uses the current device for the default tensor type (see torch.set_default_tensor_type()). ``device`` will be the CPU for CPU tensor types and the current CUDA device for CUDA tensor types.
641
641
642
642
Args:
643
-
input (Tensor): tensor representing a distinct sequence.
644
-
size (int, optional): the length of the distinct sequence provided as input. Default: ``0``.
643
+
input (Tensor): tensor representing a binding-based sequence.
644
+
size (int, optional): the length of the sequence provided as input. Default: ``0``.
0 commit comments