Skip to content

Commit c989e11

Browse files
MartinXPNmahnerak
authored andcommitted
minor fixes in model construction
1 parent cf3255d commit c989e11

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

layers/QuestionPooling.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ def __init__(self, **kwargs):
1515
self.supports_masking = True
1616

1717
def compute_output_shape(self, input_shape):
18-
assert(isinstance(input_shape, list) and len(input_shape) == 4)
18+
assert(isinstance(input_shape, list) and len(input_shape) == 5)
1919

2020
input_shape = input_shape[0]
2121
B, Q, H = input_shape
2222

2323
return (B, H)
2424

2525
def build(self, input_shape):
26-
assert(isinstance(input_shape, list) and len(input_shape) == 4)
26+
assert(isinstance(input_shape, list) and len(input_shape) == 5)
2727
input_shape = input_shape[0]
2828

2929
B, Q, H_ = input_shape

layers/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
from Argmax import Argmax
66
from Slice import Slice
77
from SharedWeight import SharedWeightLayer, SharedWeight
8+
from VariationalDropout import VariationalDropout

model.py

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from layers import SelfAttnGRU
1717
from layers import PointerGRU
1818
from layers import QuestionPooling
19+
from layers import VariationalDropout
1920
from layers import Slice
2021
from layers import SharedWeight
2122

0 commit comments

Comments
 (0)