Spaces:
Build error
Build error
PeteBleackley
commited on
Commit
·
30efe84
1
Parent(s):
7b59e3d
Arguments to Concatenate layer should be in a list
Browse files
qarac/models/QaracDecoderModel.py
CHANGED
|
@@ -70,10 +70,10 @@ class QaracDecoderHead(keras.layers.Layer):
|
|
| 70 |
Predicted text
|
| 71 |
|
| 72 |
"""
|
| 73 |
-
vectors = self.concat(vector, hidden_states)
|
| 74 |
-
attentions = attention_mask if attention_mask is None else self.concat(tensorflow.ones((hidden_states.shape(0),
|
| 75 |
-
|
| 76 |
-
|
| 77 |
l0 = self.layer_0(vectors,
|
| 78 |
attentions,
|
| 79 |
None,
|
|
|
|
| 70 |
Predicted text
|
| 71 |
|
| 72 |
"""
|
| 73 |
+
vectors = self.concat([vector, hidden_states])
|
| 74 |
+
attentions = attention_mask if attention_mask is None else self.concat([tensorflow.ones((hidden_states.shape(0),
|
| 75 |
+
1)),
|
| 76 |
+
attention_mask])
|
| 77 |
l0 = self.layer_0(vectors,
|
| 78 |
attentions,
|
| 79 |
None,
|