Guest User

Untitled

a guest
Feb 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #... rest of code
  2. conv1 = Conv2D(1, (3,3), padding='same', input_shape=(1, 500, 500), kernel_constraint = CustomConstraint())
  3. #... rest of code
  4.  
  5. class CustomConstraint(Constraint):
  6. def __init__(self):
  7. print("INIT")
  8.  
  9. def __call__(self, w):
  10. print("CALL")
  11. return .5*(w+K.transpose(w))
Add Comment
Please, Sign In to add comment