基於attention機制實現 CRNN OCR文字識別

定義網絡結構 實現 BahdanauAttention,其中socre的實現方法爲 perceptron 形式python class BahdanauAttention(tf.keras.Model): def __init__(self, units): super(BahdanauAttention, self).__init__() self.W1
相關文章
相關標籤/搜索