Skip to content

Commit

Permalink
Update mmengine/structures/base_data_element.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzaida committed Dec 20, 2022
1 parent bed7215 commit 4e66e53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmengine/structures/base_data_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class BaseDataElement:
information about the image such as filename,
image_shape, pad_shape, etc. The attributes can be accessed or
modified by dict-like or object-like operations, such as
``.``(for data access and modification), ``in``, ``del``,
``.`` (for data access and modification), ``in``, ``del``,
``pop(str)``, ``get(str)``, ``metainfo_keys()``,
``metainfo_values()``, ``metainfo_items()``, ``set_metainfo()``(for
set or change key-value pairs in metainfo).
Expand All @@ -60,7 +60,7 @@ class BaseDataElement:
dict-like or object-like operations, such as
``.``, ``in``, ``del``, ``pop(str)``, ``get(str)``, ``keys()``,
``values()``, ``items()``. Users can also apply tensor-like
methods to all :obj:``torch.Tensor`` in the ``data_fields``,
methods to all :obj:`torch.Tensor` in the ``data_fields``,
such as ``.cuda()``, ``.cpu()``, ``.numpy()``, ``.to()``,
``to_tensor()``, ``.detach()``.
Expand Down

0 comments on commit 4e66e53

Please sign in to comment.