You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Test whether there will be correct exception when users pass paddle.split kwargs in paddle.compat.split, vice versa."""
132
136
x=paddle.randn([3, 9, 5])
133
137
134
-
msg_gt_1="split() received unexpected keyword arguments 'tensor', 'split_size_or_sections', 'dim'. \nDid you mean to use paddle.compat.split() instead?"
135
-
msg_gt_2="split() received unexpected keyword argument 'num_or_sections'. \nDid you mean to use paddle.split() instead?"
138
+
msg_gt_1= (
139
+
"paddle.split() received unexpected keyword arguments 'tensor', 'split_size_or_sections', 'dim'. "
140
+
"\nDid you mean to use paddle.compat.split() instead?"
141
+
)
142
+
msg_gt_2= (
143
+
"paddle.compat.split() received unexpected keyword argument 'num_or_sections'. "
144
+
"\nDid you mean to use paddle.split() instead?"
145
+
)
146
+
msg_gt_3="(InvalidArgument) The dim is expected to be in range of [-3, 3), but got 3"
147
+
msg_gt_4="paddle.compat.split expects split_sizes have only non-negative entries, but got size = -5 on dim 2"
148
+
149
+
split_size=paddle.to_tensor([3])
150
+
msg_gt_5= (
151
+
"The type of 'split_size_or_sections' in split must be int, list or tuple in imperative mode, but "
0 commit comments