This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Algorithme program4 | |
var | |
posReineX, posReineY : entier; | |
posInitialDiag1, posInitialDiag2 : entier; // les position X initale du chaque diagonale | |
echiquier = tableu [8,8] : entier; | |
i , j : entier; | |
debut | |
ecrire("entrer la position initial de la reine :"); | |
lire(posReineX, posReineY); | |
posInitialDiag1 <-- posReineX - (posReineY - 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
import torchvision.transforms as transforms | |
import torchvision.datasets as datasets | |
import torch.optim | |
import torch.utils.data | |
CUDA = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
import torchvision.transforms as transforms | |
import torchvision.datasets as datasets | |
import torch.optim | |
import torch.utils.data | |
CUDA = False |