Commit 8e852e5
authored
HParams: Update
## Motivation for features / changes
In #6318 I ported over the runs_data_source from internal tensorboard in
order to begin fetching hparams data in the timeseries dashboard.
However, I later learned that it didn't play well with internal Colab
which does not allow POST requests and thus had to revert the change in
#6336.
## Technical description of changes
The current implementation of this "hackaround" converts post bodies to
query params and assumes that all post bodies are of type `FormData`.
This does not work in this situation for two reasons:
1) HParams Plugin backend does not accept `FormData`
2) The [the hparams
plugin](https://github.com/tensorflow/tensorboard/blob/master/tensorboard/plugins/hparams/hparams_plugin.py#L191)
only expects GET requests to have a query parameter titled "request"
which is a serialized JSON object.
## Screenshots of UI changes
N/A
## Alternate designs / implementations considered
I considered modifying the hparams plugin to accept many query
parameters but decided that the logic required to convert them to a
single JSON object (including nested objects/arrays and parsing numbers)
was messier than the just doing it on the client.tb_http_client to support the hparams plugin backend (#6337)1 parent f83272f commit 8e852e5
File tree
2 files changed
+62
-14
lines changed- tensorboard/webapp/webapp_data_source
2 files changed
+62
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
48 | 62 | | |
49 | 63 | | |
50 | 64 | | |
| |||
84 | 98 | | |
85 | 99 | | |
86 | 100 | | |
87 | | - | |
| 101 | + | |
| 102 | + | |
88 | 103 | | |
89 | 104 | | |
90 | 105 | | |
| |||
100 | 115 | | |
101 | 116 | | |
102 | 117 | | |
103 | | - | |
| 118 | + | |
104 | 119 | | |
105 | 120 | | |
106 | 121 | | |
| |||
Lines changed: 45 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
107 | 140 | | |
108 | 141 | | |
109 | 142 | | |
| |||
0 commit comments