Creates `n` `None` optionals in func_graph. Args: func_graph: FuncGraph. n: `int` the number of `None` optionals to make. Returns: A list of tensors in func_graph.
(func_graph, n)
| 675 | |
| 676 | |
| 677 | def _create_none_optionals(func_graph, n): |
| 678 | """Creates `n` `None` optionals in func_graph. |
| 679 | |
| 680 | Args: |
| 681 | func_graph: FuncGraph. |
| 682 | n: `int` the number of `None` optionals to make. |
| 683 | |
| 684 | Returns: |
| 685 | A list of tensors in func_graph. |
| 686 | """ |
| 687 | with func_graph.as_default(): |
| 688 | return [gen_dataset_ops.optional_none() for _ in range(n)] |
| 689 | |
| 690 | |
| 691 | def _create_fakeparams(func_graph, template_tensors): |
no test coverage detected