cerebras.modelzoo.tools.checkpoint_converters.streaming_checkpoints.ReadOnlyDict#
- class cerebras.modelzoo.tools.checkpoint_converters.streaming_checkpoints.ReadOnlyDict[source]#
Bases:
dictA Read-only dict.
Note that this object doesn’t guard against the values from being mutated in-place.
Methods
clearCreate a new dictionary with keys from iterable and values set to value.
Return the value for key if key is in the dictionary, else default.
poppopitemsetdefaultupdate- copy() a shallow copy of D#
- fromkeys(value=None, /)#
Create a new dictionary with keys from iterable and values set to value.
- get(key, default=None, /)#
Return the value for key if key is in the dictionary, else default.
- items() a set-like object providing a view on D's items#
- keys() a set-like object providing a view on D's keys#
- values() an object providing a view on D's values#