File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ lingvo_cuda_py_test(
40
40
],
41
41
)
42
42
43
- py_library (
43
+ pytype_library (
44
44
name = "attention" ,
45
45
srcs = ["attention.py" ],
46
46
deps = [
Original file line number Diff line number Diff line change @@ -2713,7 +2713,7 @@ def ComputeContextVectorWithSource(self,
2713
2713
theta ,
2714
2714
packed_src ,
2715
2715
query_vec ,
2716
- attention_state ,
2716
+ attention_state = None ,
2717
2717
per_step_source_padding = None ,
2718
2718
query_segment_id = None ):
2719
2719
"""Computes the context vector given the current query output.
@@ -2971,7 +2971,7 @@ def ComputeContextVectorWithSource(self,
2971
2971
theta ,
2972
2972
packed_src ,
2973
2973
query_vec ,
2974
- attention_state ,
2974
+ attention_state = None ,
2975
2975
per_step_source_padding = None ,
2976
2976
query_segment_id = None ):
2977
2977
"""Computes the context vector given the current query output.
You can’t perform that action at this time.
0 commit comments