Skip to content

Instantly share code, notes, and snippets.

@tunguyenlam
tunguyenlam / citadel-x86-setup.md
Created December 27, 2022 07:58 — forked from pwltr/citadel-x86-setup.md
Citadel Guide #1: How to get Citadel running on x86

How to get Citadel running on a regular computer

This is a step-by-step guide to get Citadel running on a x86 architecture computer like a desktop PC, laptop or Intel NUC.

The system requirements for running a Citadel are:

• Ubuntu 22.04 / Debian 11 (or later)
• 4GB RAM (minimum)
• 1.5GHz CPU (minimum)

• 1TB SSD

import torch
from torch import nn, optim
from torch.autograd.variable import Variable
from torchvision import transforms, datasets
from utils import Logger
def mnist_data():
compose = transforms.Compose(
[transforms.ToTensor(),
transforms.Normalize((.5, .5, .5), (.5, .5, .5))
@tunguyenlam
tunguyenlam / gan.py
Created June 21, 2017 09:59 — forked from scturtle/gan.py
GAN a Gaussian distribution
from __future__ import print_function
import numpy as np
from scipy.stats import norm
import matplotlib.pyplot as plt
import tensorflow as tf
import tensorflow.contrib.layers as tfl
import tensorflow.contrib.framework as tff
def minibatch(features):
size_a, size_b, size_c = features.get_shape()[1], 3, 3