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 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. |
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
# 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' |