torch.initial_seed torch.initial_seed() Returns the initial seed for generating random numbers as a Python long. Return type: int