Skip to content

Commit 36a1e31

Browse files
lingvo-botcopybara-github
authored andcommitted
Change attention to pytype_library.
PiperOrigin-RevId: 586113221
1 parent 2f7d2a4 commit 36a1e31

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lingvo/core/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ lingvo_cuda_py_test(
4040
],
4141
)
4242

43-
py_library(
43+
pytype_library(
4444
name = "attention",
4545
srcs = ["attention.py"],
4646
deps = [

lingvo/core/attention.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2713,7 +2713,7 @@ def ComputeContextVectorWithSource(self,
27132713
theta,
27142714
packed_src,
27152715
query_vec,
2716-
attention_state,
2716+
attention_state=None,
27172717
per_step_source_padding=None,
27182718
query_segment_id=None):
27192719
"""Computes the context vector given the current query output.
@@ -2971,7 +2971,7 @@ def ComputeContextVectorWithSource(self,
29712971
theta,
29722972
packed_src,
29732973
query_vec,
2974-
attention_state,
2974+
attention_state=None,
29752975
per_step_source_padding=None,
29762976
query_segment_id=None):
29772977
"""Computes the context vector given the current query output.

0 commit comments

Comments
 (0)