(x)
| 398 | |
| 399 | # high level |
| 400 | def get_value(x): |
| 401 | if isinstance(x, VarNode): |
| 402 | var = x.var |
| 403 | o = G.OutputNode(var) |
| 404 | graph = x.graph |
| 405 | graph.compile(o.outputs).execute() |
| 406 | return o.get_value().numpy() |
| 407 | else: |
| 408 | return x.numpy() |
| 409 | |
| 410 | |
| 411 | @pytest.mark.parametrize("test_varnode", [True, False]) |
no test coverage detected