Skip to content

Instantly share code, notes, and snippets.

View cabral's full-sized avatar

Felipe Benites Cabral cabral

  • @felipebcabral
  • Stockholm
View GitHub Profile
gpus = tf.config.experimental.list_physical_devices('GPU')
if gpus:
try:
# Restrict TensorFlow to only use the fourth GPU
tf.config.experimental.set_visible_devices(gpus[0], 'GPU')
# Currently, memory growth needs to be the same across GPUs
for gpu in gpus:
tf.config.experimental.set_memory_growth(gpu, True)
logical_gpus = tf.config.experimental.list_logical_devices('GPU')

Keybase proof

I hereby claim:

  • I am cabral on github.
  • I am cap_cabral (https://keybase.io/cap_cabral) on keybase.
  • I have a public key whose fingerprint is 553C 4A38 9FD7 18CC E501 CCA4 97D4 6CFD 3E45 86E7

To claim this, I am signing this object:

@cabral
cabral / SymfonyNotebook.MD
Last active November 26, 2016 17:27
PHP lessons

Start PHP server

php bin/console server:run

Gentle remender to nest the routes

namespace AppBundle\Controller;

Packges and objects like mailer/blogger/form are called SERVICES

@cabral
cabral / keybase.md
Created October 3, 2016 09:03
Keybase proof

Keybase proof

I hereby claim:

  • I am cabral on github.
  • I am cap_cabral (https://keybase.io/cap_cabral) on keybase.
  • I have a public key whose fingerprint is 8CB3 519C A395 6375 404D 3A31 ED5B B0FA 7D28 ADA0

To claim this, I am signing this object:

danieldocki
alinebastos
bsflores
Felipe Elias Philipp
lucashgt
nicolasiensen
Felipe Lima
brunopagno
norbajunior
brusteyer