Skip to content

Instantly share code, notes, and snippets.

Steven Guh stevenguh

  • Seattle
Block or report user

Report or block stevenguh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@stevenguh
stevenguh / tcn.py
Created Feb 7, 2019
Temporal Conv Net with Non-Causal Conv in PyTorch
View tcn.py
# Import TCN library from https://github.com/locuslab/TCN
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.utils import weight_norm
def conv1d_same_padding(input, weight, bias=None, stride=1, dilation=1, groups=1):
input_length = input.size(2)
filter_length = weight.size(2)
View NodaContractResolverBenchmarks.cs
using System;
using BenchmarkDotNet.Attributes;
using Newtonsoft.Json;
using NodaTime.Serialization.JsonNet;
namespace NodaTime.Serialization.Benchmarks.JsonNet
{
[MemoryDiagnoser]
public class NodaContractResolverBenchmarks
{
@stevenguh
stevenguh / ConfigureForNodaTimeBenchmarks.cs
Created Aug 24, 2017
Benchmarks for nodatime.serialization #12 (TypeDescriptor vs ConfigureForNodaTime)
View ConfigureForNodaTimeBenchmarks.cs
[MemoryDiagnoser]
public class ConfigureForNodaTimeBenchmarks
{
static readonly Instant _instant = Instant.FromUtc(2017, 6, 7, 0, 0);
static readonly DateTime _dateTime = new DateTime(2017, 6, 7);
static readonly JsonSerializerSettings _settings = new JsonSerializerSettings();
static ConfigureForNodaTimeBenchmarks()
{
_settings.ConfigureForNodaTime(DateTimeZoneProviders.Tzdb);
You can’t perform that action at this time.