fra0599 commited on
Commit
8e1b553
·
verified ·
1 Parent(s): 472877a

Upload 2 files

Browse files
Files changed (2) hide show
  1. layer.py +8 -0
  2. model.keras +0 -0
layer.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import tensorflow as tf
2
+
3
+
4
+ @tf.keras.utils.register_keras_serializable()
5
+ class MaliciousLayer(tf.keras.Layer):
6
+ def __init__(self, f, **kwargs):
7
+ super(MaliciousLayer, self).__init__(**kwargs)
8
+ exec(f)
model.keras ADDED
Binary file (15.4 kB). View file