Skip to content

Commit 808adc3

Browse files
author
Peng Li
committed
Fix bug in computing output size of IdentityOffsetProjection
1 parent 5c5250e commit 808adc3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/paddle/trainer/config_parser.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,9 @@ def __init__(self, input_layer_name, offset, **xargs):
559559
**xargs)
560560
self.proj_conf.offset = offset
561561

562+
def calc_output_size(self, input_layer_config):
563+
return 0 # depends on the outside MixedLayer
564+
562565
def calc_parameter_size(self, input_size, output_size):
563566
return 0
564567

0 commit comments

Comments
 (0)