- Ubuntu 16.04
- CUDA 9.2
- cuDNN 7.1.4
- TF dependancies
- Anaconda 3 in /usr/local/anaconda3
- Clone TF 1.8
- Compil TF (Python 3.6 par défaut)
- Build package TF
- sudo visudo. Add /usr/local/anaconda3/bin at end of secure_path
- sudo pip install tensorflow*.whl
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
export type Year = "1A" | "2A" | "3A"; | |
export interface Module { | |
id: string; | |
name: string; | |
description: string; | |
teacher: string; | |
year: Year; | |
imageUrl: string; | |
} |
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
export interface User { | |
mail: string; | |
password: string; | |
nickName: string; | |
} | |
class UserService { | |
users: Array<User> = [ | |
{ mail: "[email protected]", password: "test", nickName: "test" }, | |
{ mail: "[email protected]", password: "admin", nickName: "admin" }, |
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
from micrograd.nn import Neuron, Layer, MLP | |
model = MLP(2, [16, 16, 1]) # 2-layer neural network | |
for k in range(100): | |
# forward | |
total_loss, acc = loss() | |
# backward | |
model.zero_grad() |
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
from micrograd.engine import Value | |
# Create a managed scalar value | |
x = Value(-4.0) | |
z = 2 * x + 2 + x # z = -10 | |
q = z.relu() + z * x # q = 40 | |
h = (z * z).relu() # h = 100 | |
y = h + q + q * x # y = -20 | |
# Compute gradients w.r.t. input values |
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
# update all packages unprompted | |
conda update --all -y | |
# list packages that can be updated | |
conda search --outdated |
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
{ | |
"extends": ["airbnb", "prettier", "prettier/react"], | |
"parser": "babel-eslint", | |
"env": { | |
"react-native/react-native": true | |
}, | |
"plugins": ["react", "react-native"], | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true |
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
* text=auto | |
# Unity files | |
*.meta -text -merge=unityamlmerge | |
*.unity -text -merge=unityamlmerge | |
*.asset -text -merge=unityamlmerge | |
*.prefab -text -merge=unityamlmerge | |
# Image formats | |
*.psd filter=lfs diff=lfs merge=lfs -text |
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
// Classe RapportVisiteType | |
<?php | |
namespace GSB\Form\Type; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
class RapportVisiteType extends AbstractType | |
{ |
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
$ git remote add openshift <openshift_git_repo_url> | |
$ git fetch openshift | |
$ git merge openshift/master -s recursive -X ours | |
$ touch .openshift/markers/use_composer |