fn resize_last_batch(&mut self) {
        if self.instance_idx == 0 {
            return;
        }

        let last_size = self.instance_idx;

        let old_lookup_inputs = self.lookup_inputs.pop().expect("No batches");
        self.lookup_inputs
            .push(old_lookup_inputs.copy_batches(last_size as u64));

        let old_labels = self.labels.pop().expect("No batches");
        self.labels.push(old_labels.copy_batches(last_size as u64));

        let old_non_lookup_inputs = self.non_lookup_inputs.pop().expect("No batches");
        self.non_lookup_inputs
            .push(old_non_lookup_inputs.copy_batches(last_size as u64));
    }
/// Resize the last batch to the number of instances in that batch.
Resize the last batch to the number of instances in that batch.
Resize the last batch to the number of instances in that batch .
fn resize_last_batch(&mut self) {
        if self.instance_idx == 0 {
            return;
        }
        let last_size = self.instance_idx;
        let old_lookup_inputs = self.lookup_inputs.pop().expect("No batches");
        self.lookup_inputs
            .push(old_lookup_inputs.copy_batches(last_size as u64));
        let old_labels = self.labels.pop().expect("No batches");
        self.labels.push(old_labels.copy_batches(last_size as u64));
        let old_non_lookup_inputs = self.non_lookup_inputs.pop().expect("No batches");
        self.non_lookup_inputs
            .push(old_non_lookup_inputs.copy_batches(last_size as u64));
    }
fn resize_last_batch ( & mut self ) { if self . instance_idx == 0 { return ; } let last_size = self . instance_idx ; let old_lookup_inputs = self . lookup_inputs . pop ( ) . expect ( " " ) ; self . lookup_inputs . push ( old_lookup_inputs . copy_batches ( last_size as u64 ) ) ; let old_labels = self . labels . pop ( ) . expect ( " " ) ; self . labels . push ( old_labels . copy_batches ( last_size as u64 ) ) ; let old_non_lookup_inputs = self . non_lookup_inputs . pop ( ) . expect ( " " ) ; self . non_lookup_inputs . push ( old_non_lookup_inputs . copy_batches ( last_size as u64 ) ) ; }
Resize the last batch to the number of instances in that batch.
Resize the last batch to the number of instances in that batch .
&mut self
&mut self