Skip to content

Instantly share code, notes, and snippets.

View achimnol's full-sized avatar

Joongi Kim achimnol

View GitHub Profile
@achimnol
achimnol / test_single_gpu.py
Last active October 31, 2019 12:36 — forked from j-min/test_single_gpu.py
TensorFlow single GPU example
from __future__ import print_function
'''
Basic Multi GPU computation example using TensorFlow library.
Author: Aymeric Damien
Project: https://github.com/aymericdamien/TensorFlow-Examples/
'''
'''
This tutorial requires your machine to have 1 GPU
"/cpu:0": The CPU of your machine.
@achimnol
achimnol / long-logs.py
Created March 4, 2020 06:30
A simple Python script to test long console output handling
import string
import sys
if __name__ == '__main__':
total_length = int(sys.argv[1])
if len(sys.argv) == 3:
line_length = int(sys.argv[2])
else:
line_length = 10_000
i = 0
@achimnol
achimnol / cloud-init.yml
Last active February 4, 2024 15:15
fresh-vm-for-backendai-dev
#cloud-config
package_update: true
package_upgrade: true
groups:
- docker
system_info:
default_user:
groups: [ docker ]
packages:
# docker dependencies