We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b78daea commit c371b20Copy full SHA for c371b20
src/lightning/pytorch/loggers/utilities.py
@@ -125,17 +125,17 @@ class _ListMap(list[_T]):
125
TypeError: If a Mapping is provided and any of its keys are not of type str.
126
127
Example:
128
- >>> listmap = _ListMap({'obj1': obj1, 'obj2': obj2})
+ >>> listmap = _ListMap({'obj1': 1, 'obj2': 2})
129
>>> listmap['obj1'] # Access by name
130
- obj1
+ 1
131
>>> listmap[0] # Access by index
132
133
- >>> listmap['obj2'] = obj3 # Set by name
+ >>> listmap['obj2'] = 3 # Set by name
134
>>> listmap[1] # Now returns obj3
135
- obj3
136
- >>> listmap.append(obj4) # Append by index
+ 3
+ >>> listmap.append(4) # Append by index
137
>>> listmap[2]
138
- obj4
+ 4
139
140
"""
141
0 commit comments