public class typeChange { public static void main(String[] args) { int a = 1_000_000_000; // jdk7 支持用_去分割數字 int b = 1000; long num = a * (long)b; // 此時輸出的是不對的,因爲 a * b已經是超出int的範圍了 System.out.println(num); } }
public class typeChange { public static void main(String[] args) { int a = 1_000_000_000; // jdk7 支持用_去分割數字 int b = 1000; long num = a * (long)b; // 此時輸出的是不對的,因爲 a * b已經是超出int的範圍了 System.out.println(num); } }
利用torchsummary觀察每一層的情況 1)按照方式 pip install torchsummary 2)