b85fd873930c51beaba187673f1548eb56e7f38a,tensorboard/plugins/audio/audio_plugin.py,AudioPlugin,_serve_individual_audio,#AudioPlugin#Any#,231
Before Change
)
data = events[index].tensor_proto.string_val[sample]
except (KeyError, IndexError):
return http_util.Respond(
request,
"Invalid run, tag, index, or sample",
"text/plain",
code=400,
)
mime_type = self._get_mime_type(run, tag)
return http_util.Respond(request, data, mime_type)
@wrappers.Request.application
After Change
def _serve_individual_audio(self, request):
Serve encoded audio data.
experiment = plugin_util.experiment_id(request.environ)
mime_type = request.args["content_type"]
if mime_type not in _ALLOWED_MIME_TYPES:
raise errors.InvalidArgumentError(
"Illegal mime type %r" % mime_type
)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: tensorflow/tensorboard
Commit Name: b85fd873930c51beaba187673f1548eb56e7f38a
Time: 2020-04-16
Author: wchargin@gmail.com
File Name: tensorboard/plugins/audio/audio_plugin.py
Class Name: AudioPlugin
Method Name: _serve_individual_audio
Project Name: tensorflow/tensorboard
Commit Name: 1e7af1285c2c506d1c73f6e6cb612a26b5cf3da6
Time: 2017-10-19
Author: nfelt@users.noreply.github.com
File Name: tensorboard/backend/application.py
Class Name: TensorBoardWSGI
Method Name: _serve_plugins_listing
Project Name: tensorflow/tensorboard
Commit Name: 1780833b30d953509200bf9560be2ba42fabe9ff
Time: 2020-01-06
Author: cais@google.com
File Name: tensorboard/plugins/debugger_v2/debugger_v2_plugin.py
Class Name: DebuggerV2Plugin
Method Name: serve_runs