Skip to content

Instantly share code, notes, and snippets.

@ZJH2233
ZJH2233 / resnet50.py
Created August 17, 2020 09:25 — forked from nwatab/resnet50.py
Tensorflow v1 primitive implementation of ResNet50. Change output activation from ReLU to what you like
import tensorflow as tf
"""
Thanks to
https://cv-tricks.com/keras/understand-implement-resnets/
https://qiita.com/gucchi0403/items/097d83f0e8a6091c1240
"""
def resnet(inpt, out_units):
def weight_variable(shape, name=None):