Skip to content

Commit 436c0e0

Browse files
authored
Merge pull request #4825 from pengli09/fix-bug-in-identity-offset-projection-output-size
Fix bug in computing output size of IdentityOffsetProjection
2 parents 0c72649 + 808adc3 commit 436c0e0

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)