Skip to content

Instantly share code, notes, and snippets.

View hsm207's full-sized avatar

Shukri hsm207

View GitHub Profile
@hsm207
hsm207 / rpr_with_einsum_gpu.ipynb
Last active April 21, 2019 11:08
Code to accompany my blog post at https://bit.ly/2PmRjiC
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hsm207
hsm207 / einsum_with_pytorch.ipynb
Last active May 11, 2022 13:57
Code to accompany my blog post at https://bit.ly/2PmRjiC
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hsm207
hsm207 / conv2d_as_matmul.ipynb
Last active January 17, 2024 17:12
Code to accompany my blog post at https://bit.ly/2KfmQ76
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from __future__ import division
import urlparse
import os
import numpy
import boto3
import tensorflow
from tensorflow.python.keras._impl import keras
from tensorflow.python.estimator.export.export_output import PredictOutput
@hsm207
hsm207 / subreddit_latest.py
Created March 11, 2017 01:33 — forked from dangayle/subreddit_latest.py
Get all available submissions within a subreddit newer than x
import sys
from datetime import datetime, timedelta
import praw
user_agent = "hot test 1.0 by /u/dangayle"
r = praw.Reddit(user_agent=user_agent)
class SubredditLatest(object):
"""Get all available submissions within a subreddit newer than x."""