Skip to content

Instantly share code, notes, and snippets.

# Search time_bucket calls
Fast.shortcut :time_bucket, '^^(func_call (funcname (string (sval "time_bucket")'
if ENV['PG_URI']
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'timescaledb', path: '../../code/timescale/timescale-gem'
gem 'pry'
@hyqneuron
hyqneuron / pytorch_visualize.py
Created June 7, 2017 07:06
PyTorch graph visualization
import torch
import torch.nn as nn
from torch.nn import Parameter
from torch.autograd import Variable, Function
from collections import defaultdict
import graphviz
"""
This is a rather distorted implementation of graph visualization in PyTorch.