Skip to content

Instantly share code, notes, and snippets.

View ThomasDelteil's full-sized avatar

Thomas Delteil ThomasDelteil

View GitHub Profile
@ThomasDelteil
ThomasDelteil / bert_sentiment.ipynb
Created October 23, 2019 18:21
FineTuningBert-sentiment-analysis
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ThomasDelteil
ThomasDelteil / 1_gluon_cv_light.ipynb
Created September 27, 2019 04:32
SA CV Workshop
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"nodes": [
{
"op": "null",
"name": "data",
"inputs": []
},
{
"op": "null",
"name": "resnetv10_conv0_weight",
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ThomasDelteil
ThomasDelteil / 1_gluon_cv.ipynb
Last active March 8, 2019 18:10
GRT_Amazon_08
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ThomasDelteil
ThomasDelteil / encoder_decoder.py
Last active November 22, 2018 02:55
TextDenoising
# coding: utf-8
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
@ThomasDelteil
ThomasDelteil / gluonnlp.py
Last active July 20, 2018 18:51
gluon_nlp_blog
import mxnet as mx
import gluonnlp as nlp
# Load GloVe word embeddings
glove = nlp.embedding.create('glove', source='glove.6B.50d')
# Compute 'baby' and 'infant' word embeddings
baby_glove, infant_glove = glove['baby'], glove['infant']
# Load pre-trained AWD LSTM language model and get the embedding
@ThomasDelteil
ThomasDelteil / benchmark.py
Last active June 16, 2018 21:40
benchmarkHybridBlock
import multiprocessing, time
import mxnet as mx
from mxnet import nd, gluon, autograd
# ctx
ctx = mx.gpu()
# data
def transform(x):
#x = mx.image.resize_short(x, 32)
x = x.transpose((2, 0, 1))