Commit 48c433f
Have
* Have `write_graph` return the output path of file
Since the function is performing `os.path.join()` for the user, it makes
sense to return the location of the final file, or else the user will
have to call `os.path.join()` again on their own.
* Adjust WriteGraphTest to check returned path
* Assert path exists; "/".join -> os.path.join
Theoretically more Windows compatiblewrite_graph return the output path of file (tensorflow#6851)1 parent cf9818e commit 48c433f
2 files changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1837 | 1837 | | |
1838 | 1838 | | |
1839 | 1839 | | |
1840 | | - | |
1841 | | - | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
1842 | 1846 | | |
1843 | 1847 | | |
1844 | 1848 | | |
1845 | 1849 | | |
1846 | | - | |
1847 | | - | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
1848 | 1856 | | |
1849 | 1857 | | |
1850 | 1858 | | |
| |||
0 commit comments