This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # 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 |