Skip to content

Instantly share code, notes, and snippets.

View jpwiedekopf's full-sized avatar
💻
Coding Furiously

Joshua Wiedekopf jpwiedekopf

💻
Coding Furiously
View GitHub Profile
@jpwiedekopf
jpwiedekopf / Caddyfile
Last active March 11, 2024 16:28
OAuth2-Proxy für SmICS
{
pki {
ca caddy {
name "SmICS App Local Authority"
root {
cert /caddy_ca/smics-uksh-ca.crt
key /caddy_ca/smics-uksh-ca.key
}
}
}
@jpwiedekopf
jpwiedekopf / cross_stitch.py
Created October 5, 2019 21:48
CrossStitch (from Misra et al 2016, arXiv:1604.03539) in tf.keras (Tensorflow 2)
import tensorflow as tf
class CrossStitch(tf.keras.layers.Layer):
"""Cross-Stitch implementation according to arXiv:1604.03539
Implementation adapted from https://github.com/helloyide/Cross-stitch-Networks-for-Multi-task-Learning"""
def __init__(self, num_tasks, *args, **kwargs):
"""initialize class variables"""