Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 tensorflow as tf | |
import pathlib | |
import os | |
import time | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import pandas as pd | |
# Optionally set memory groth to 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
#%% | |
import tensorflow as tf | |
import pathlib | |
import os | |
import time | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import pandas as pd | |
physical_devices = tf.config.list_physical_devices('GPU') |
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 tensorflow as tf | |
import pathlib | |
import os | |
import time | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import pandas as pd | |
physical_devices = tf.config.list_physical_devices('GPU') |
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
package kleolife.gl | |
import kleolife.data.GraphicData | |
import org.khronos.webgl.WebGLProgram | |
import org.khronos.webgl.WebGLRenderingContext | |
import org.khronos.webgl.WebGLShader | |
class GLUtils { | |
companion object { | |
fun clearScreen(gfx: GraphicData) { |
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
#pragma omp parallel default(none) | |
{ | |
srand(chrono::high_resolution_clock::now().time_since_epoch().count() ^ static_cast<long long>(omp_get_thread_num())); | |
#pragma omp for | |
for (auto i = 0; i < group1size; i++) | |
{ |
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
// create cells with random positions and colors | |
for (auto i = 0; i < 2000; i++) { | |
Cell cell; | |
cell.position.x = ofRandom(0, ofGetWidth()); | |
cell.position.y = ofRandom(0, ofGetHeight()); | |
cell.color = ofColor(ofRandom(0, 255), ofRandom(0, 255), ofRandom(0, 255)); | |
cells.push_back(cell); | |
} | |
OlderNewer