    def train_instances(self) -> List[InstanceWithGrads]:
        """
        The training instances along with their corresponding loss and gradients.

        !!! Note
            Accessing this property requires calling `self._gather_train_instances_and_compute_gradients()`
            if it hasn't been called yet, which may take several minutes.
        """
        if self._train_instances is None:
            self._gather_train_instances_and_compute_gradients()
        assert self._train_instances is not None
        return self._train_instances
The training instances along with their corresponding loss and gradients.

!!! Note
Accessing this property requires calling `self._gather_train_instances_and_compute_gradients()`
if it hasn't been called yet, which may take several minutes.
allennlp/interpret/influence_interpreters/influence_interpreter.py