F.adjust_brightness expects a float as seen here using this description:

brightness_factor (float):  How much to adjust the brightness. Can be any non negative number. 0 gives a black image, 1 gives the original image while 2 increases the brightness by a factor of 2.