cerebras.modelzoo.tools.convert_checkpoint.diff_checkpoints#
- cerebras.modelzoo.tools.convert_checkpoint.diff_checkpoints(checkpoint_left, checkpoint_right, tensor_comparison_op='equal')[source]#
Compare state dictionaries of two checkpoints (left and right). Returns True if the dicts are the same. Tensors can be compared via the “equal” or “allclose” operators. All other types are compared for strict equality.