See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
Original paper on A-normal form: | |
http://redlinernotes.com/docs/Classics/The%20Essence%20of%20Compiling%20with%20Continuations.pdf | |
A high-level intro to ANF: | |
http://matt.might.net/articles/a-normalization/ | |
One of the earlier attempts to relate SSA and CPS: |
# Set-ExecutionPolicy Bypass -Scope CurrentUser # to further speedup powershell startup | |
$PROFILE_DIR = Split-Path -Path $PROFILE.CurrentUserAllHosts -Parent | |
$OLD = $PROFILE | |
$PROFILE = Join-Path $PROFILE_DIR "profile.ps1" | |
$PROFILE | Add-Member -NotePropertyName AllUsersAllHosts -NotePropertyValue $OLD.AllUsersAllHosts | |
$PROFILE | Add-Member -NotePropertyName AllUsersCurrentHost -NotePropertyValue $OLD.AllUsersCurrentHost | |
$PROFILE | Add-Member -NotePropertyName CurrentUserAllHosts -NotePropertyValue $PROFILE.ToString() | |
$PROFILE | Add-Member -NotePropertyName CurrentUserCurrentHost -NotePropertyValue $PROFILE.ToString() | |
Clear-Variable OLD |
import tensorflow as tf | |
# 1. Create and save two graphs | |
# c = a*b | |
g1 = tf.Graph() | |
with g1.as_default(): | |
a = tf.placeholder(tf.float32, name='a') | |
b = tf.Variable(initial_value=tf.truncated_normal((1,)), name='b') |
This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).
Matrix multiplication is a mathematical operation that defines the product of
Shader "WorldNormalFromDepthTexture" | |
{ | |
Properties { | |
[KeywordEnum(3 Tap, 4 Tap, Improved, Accurate)] _ReconstructionMethod ("Normal Reconstruction Method", Float) = 0 | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Transparent" "Queue"="Transparent" } | |
LOD 100 |
from __future__ import annotations | |
from contextlib import contextmanager | |
from typing import NamedTuple, Callable, Optional, Any | |
import numpy as np | |
Array = Any | |
class Node(NamedTuple): | |
vjp: Optional[Callable] | |
parents: List[Node] |