jrippert commited on
Commit
dfc7d74
1 Parent(s): 53254fb

Update compAnIonv1.py

Browse files
Files changed (1) hide show
  1. compAnIonv1.py +5 -1
compAnIonv1.py CHANGED
@@ -76,7 +76,11 @@ def create_bert_classification_model(bert_model,
76
  input_ids = tf.keras.layers.Input(shape=(MAX_SEQUENCE_LENGTH,), dtype=tf.int64, name='input_ids')
77
  token_type_ids = tf.keras.layers.Input(shape=(MAX_SEQUENCE_LENGTH,), dtype=tf.int64, name='token_type_ids')
78
  attention_mask = tf.keras.layers.Input(shape=(MAX_SEQUENCE_LENGTH,), dtype=tf.int64, name='attention_mask')
79
-
 
 
 
 
80
  bert_inputs = {'input_ids': input_ids,
81
  'token_type_ids': token_type_ids,
82
  'attention_mask': attention_mask}
 
76
  input_ids = tf.keras.layers.Input(shape=(MAX_SEQUENCE_LENGTH,), dtype=tf.int64, name='input_ids')
77
  token_type_ids = tf.keras.layers.Input(shape=(MAX_SEQUENCE_LENGTH,), dtype=tf.int64, name='token_type_ids')
78
  attention_mask = tf.keras.layers.Input(shape=(MAX_SEQUENCE_LENGTH,), dtype=tf.int64, name='attention_mask')
79
+ input_ids = tf.convert_to_tensor(input_ids)
80
+ token_type_ids = tf.convert_to_tensor(token_type_ids)
81
+ attention_mask = tf.convert_to_tensor(attention_mask)
82
+
83
+
84
  bert_inputs = {'input_ids': input_ids,
85
  'token_type_ids': token_type_ids,
86
  'attention_mask': attention_mask}