Skip to content

Commit 4f3b73e

Browse files
authored
Merge pull request #9128 from luotao1/layer_function_generator
fix AttributeError: 'module' object has no attribute 'framework_pb2'
2 parents a448fbe + 8a3d764 commit 4f3b73e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

python/paddle/fluid/layers/layer_function_generator.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
import functools
1717
import warnings
1818

19-
from .. import proto
20-
21-
framework_pb2 = proto.framework_pb2
22-
19+
from ..proto import framework_pb2
2320
from ..framework import OpProtoHolder, Variable
2421
from ..layer_helper import LayerHelper
2522

0 commit comments

Comments
 (0)