Skip to content

Commit

Permalink
restore_partitioned_vids fails noisily on negative vids
Browse files Browse the repository at this point in the history
  • Loading branch information
netj committed Jan 24, 2017
1 parent 80fbe11 commit ee6917a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inference/restore_partitioned_vids
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ use strict;
my $SHARD_BASE = $ENV{pid} << 48;
while (<>) {
my ($vid, @rest) = split(" ");
$vid >= 0 or die "$vid is negative";
print join("\t", ($SHARD_BASE | $vid), @rest), "\n";
}

0 comments on commit ee6917a

Please sign in to comment.