(output_tensor, orig_shape_list)
| 311 | |
| 312 | |
| 313 | def reshape_from_matrix(output_tensor, orig_shape_list): |
| 314 | if len(orig_shape_list) == 2: |
| 315 | return output_tensor |
| 316 | |
| 317 | output_shape = get_shape_list(output_tensor) |
| 318 | |
| 319 | orig_dims = orig_shape_list[0:-1] |
| 320 | width = output_shape[-1] |
| 321 | |
| 322 | return tf.reshape(output_tensor, orig_dims + [width]) |
| 323 | |
| 324 | |
| 325 | def assert_rank(tensor, expected_rank, name=None): |
nothing calls this directly
no test coverage detected