(list_shape)
| 407 | from paddle.tensor import fill_constant |
| 408 | |
| 409 | def _get_attr_shape(list_shape): |
| 410 | attr_shape = [] |
| 411 | for idx, dim in enumerate(list_shape): |
| 412 | if isinstance(dim, Variable): |
| 413 | attr_shape.append(-1) |
| 414 | else: |
| 415 | attr_shape.append(dim) |
| 416 | return attr_shape |
| 417 | |
| 418 | def _get_shape_tensor(list_shape): |
| 419 | shape_tensor_list = [] |
no test coverage detected