Home
last modified time | relevance | path

Searched refs:mask_tensor (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/python/keras/layers/
Dmulti_head_attention_test.py92 mask_tensor = keras.Input(shape=(4, 2))
93 output = test_layer(query=query, value=value, attention_mask=mask_tensor)
96 model = keras.Model([query, value, mask_tensor], output)
117 output = test_layer(query, value=value, key=key, attention_mask=mask_tensor)
118 model = keras.Model([query, value, key, mask_tensor], output)
153 mask_tensor = keras.Input(shape=(4, 2))
154 output = test_layer(query=query, value=value, attention_mask=mask_tensor)
157 model = keras.Model([query, value, mask_tensor], output)
178 query=query, value=value, attention_mask=mask_tensor,
180 model = keras.Model([query, value, mask_tensor], [output, scores])
[all …]
/external/tflite-support/tensorflow_lite_support/cc/task/text/nlclassifier/
Dbert_nl_classifier.cc70 auto* mask_tensor = in Preprocess() local
112 PopulateTensor(input_mask, mask_tensor); in Preprocess()
/external/tflite-support/tensorflow_lite_support/cc/task/text/qa/
Dbert_question_answerer.cc171 TfLiteTensor* mask_tensor = in Preprocess() local
279 PopulateTensor(input_mask, mask_tensor); in Preprocess()