Skip to content

Instantly share code, notes, and snippets.

View hivinpolat's full-sized avatar

Hivin Polat hivinpolat

  • İstanbul
View GitHub Profile
@hivinpolat
hivinpolat / CNN.py
Created June 2, 2021 22:20 — forked from JiaxiangZheng/CNN.py
convolutional neural network implemented with python
# port from https://github.com/hsmyy/zhihuzhuanlan
import numpy as np
import sys
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
def conv2(X, k):
# as a demo code, here we ignore the shape check
x_row, x_col = X.shape
k_row, k_col = k.shape