MinkowskiEngine/MinkowskiCoordinateManager.py
def field_to_sparse_insert_and_map(
        self,
        field_map_key: CoordinateMapKey,
        sparse_tensor_stride: Union[int, Sequence, np.ndarray],
        sparse_tensor_string_id: str = "",
    ) -> Tuple[CoordinateMapKey, Tuple[torch.IntTensor, torch.IntTensor]]:

        r"""Create a sparse tensor coordinate map with the tensor stride.

        :attr:`field_map_key` (`CoordinateMapKey`): field map that a new sparse
        tensor will be created from.

        :attr:`tensor_stride` (`list`): a list of `D` elements that defines the
        tensor stride for the new order-`D + 1` sparse tensor.

        :attr:`string_id` (`str`): string id of the new sparse tensor coordinate map key.

        Example::

           >>> manager = CoordinateManager(D=1)
           >>> coordinates = torch.FloatTensor([[0, 0.1], [0, 2.3], [0, 1.2], [0, 2.4]])
           >>> key, (unique_map, inverse_map) = manager.insert(coordinates, [1])

        """
        return self._manager.field_to_sparse_insert_and_map(
            field_map_key, sparse_tensor_stride, sparse_tensor_string_id
        )
r"""Create a sparse tensor coordinate map with the tensor stride.

        :attr:`field_map_key` (`CoordinateMapKey`): field map that a new sparse
        tensor will be created from.

        :attr:`tensor_stride` (`list`): a list of `D` elements that defines the
        tensor stride for the new order-`D + 1` sparse tensor.

        :attr:`string_id` (`str`): string id of the new sparse tensor coordinate map key.

        Example::

           >>> manager = CoordinateManager(D=1)
           >>> coordinates = torch.FloatTensor([[0, 0.1], [0, 2.3], [0, 1.2], [0, 2.4]])
           >>> key, (unique_map, inverse_map) = manager.insert(coordinates, [1])

        
r"""Create a sparse tensor coordinate map with the tensor stride.
r " " " Create a sparse tensor coordinate map with the tensor stride .
def field_to_sparse_insert_and_map(
        self,
        field_map_key: CoordinateMapKey,
        sparse_tensor_stride: Union[int, Sequence, np.ndarray],
        sparse_tensor_string_id: str = "",
    ) -> Tuple[CoordinateMapKey, Tuple[torch.IntTensor, torch.IntTensor]]:
        return self._manager.field_to_sparse_insert_and_map(
            field_map_key, sparse_tensor_stride, sparse_tensor_string_id
        )
def field_to_sparse_insert_and_map ( self , field_map_key : CoordinateMapKey , sparse_tensor_stride : Union [ int , Sequence , np . ndarray ] , sparse_tensor_string_id : str = "" , ) -> Tuple [ CoordinateMapKey , Tuple [ torch . IntTensor , torch . IntTensor ] ] : return self . _manager . field_to_sparse_insert_and_map ( field_map_key , sparse_tensor_stride , sparse_tensor_string_id )
r"""Create a sparse tensor coordinate map with the tensor stride.
r " " " Create a sparse tensor coordinate map with the tensor stride .
r"""Create a sparse tensor coordinate map with the tensor stride.

        :attr:`field_map_key` (`CoordinateMapKey`): field map that a new sparse
        tensor will be created from.

        :attr:`tensor_stride` (`list`): a list of `D` elements that defines the
        tensor stride for the new order-`D + 1` sparse tensor.

        :attr:`string_id` (`str`): string id of the new sparse tensor coordinate map key.

        Example::

           >>> manager = CoordinateManager(D=1)
           >>> coordinates = torch.FloatTensor([[0, 0.1], [0, 2.3], [0, 1.2], [0, 2.4]])
           >>> key, (unique_map, inverse_map) = manager.insert(coordinates, [1])

        """
self
field_map_key
CoordinateMapKey
sparse_tensor_stride
Union[int, Sequence, np.ndarray]
sparse_tensor_string_id
str
attr
`field_map_key` (`CoordinateMapKey`): field map that a new sparse
tensor will be created from.
` field_map_key ` ( ` CoordinateMapKey ` ) : field map that a new sparse tensor will be created from .
attr
`tensor_stride` (`list`): a list of `D` elements that defines the
tensor stride for the new order-`D + 1` sparse tensor.
` tensor_stride ` ( ` list ` ) : a list of ` D ` elements that defines the tensor stride for the new order - ` D + 1 ` sparse tensor .
attr
`string_id` (`str`): string id of the new sparse tensor coordinate map key.
Example:.


` string_id ` ( ` str ` ) : string id of the new sparse tensor coordinate map key . Example : .