ds.checkoutcommand with the parameter
create = True. Let's create a new branch
dog_flipped, flip the second image (dog), and create a new commit on that branch.
dog_flippedbranch as well as the previous commits on
mainis not flipped.
ds.difffunction enables users to determine the number of samples that were added, removed, or updated for each tensor. The function can be used in 3 ways:
mainbranch, which has 2 samples. Let's adds another image:
dog_flippedbranch, the dataset contains 2 samples, which is sample count from when that branch was created. Therefore, the additional uncommitted third sample that was added to the
mainbranch above is not reflected when other branches or commits are checked out.
mainbranch again, the prior uncommitted changes and available and they are stored in the HEAD commit on