You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HParams: Update tb_http_client to support the hparams plugin backend (#6337)
## 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.
0 commit comments