Skip to content

Instantly share code, notes, and snippets.

View imflash217's full-sized avatar
🔭
महाजनो येन गतः स पन्थाः ॥

Vinay Kumar imflash217

🔭
महाजनो येन गतः स पन्थाः ॥
  • United States
  • 19:48 (UTC -04:00)
View GitHub Profile
import torch
import torch.nn.Functional as F
import pytorch_lightning as pl
##########################################################################################
class FlashModel(pl.LightningModule):
"""DOCSTRING"""
def __init__(self, model):
super().__init__()
@imflash217
imflash217 / gist_to_github_repo.md
Created January 14, 2021 23:56 — forked from ishu3101/gist_to_github_repo.md
Transfer a gist to a GitHub repository

Transfer a gist to a GitHub repository

clone the gist

git clone https://gist.github.com/ishu3101/6fb35afd237e42ef25f9

rename the directory

mv 6fb35afd237e42ef25f9 ConvertTo-Markdown

change the working directory to the newly renamed directory

cd ConvertTo-Markdown

##########################################################################################
import torch
import torch.nn.Functional as F
import pytorch_lightning as pl
##########################################################################################
class FlashModel(pl.LightningModule):
def __init__(self, model):
super().__init__()
self.model = model
from IPython.display import HTML, Image
from google.colab.output import eval_js
from base64 import b64decode

# setup the canvas
canvas_html = """
<canvas width=%d height=%d></canvas>
<button>Done!</button>
<script>