Операции ведения журнала
Краткое описание
| Переменные | |
|---|---|
Arguments | audio **If max_outputs is greater the summary value tags are *generated sequentially as *tag *tag etc ** |
audio | audio **If max_outputs is greater the summary value tags are *generated sequentially as *tag * |
bad_color_ = Input::Initializer({255, 0, 0, 255}, {4}).AsTensorProto() | TensorProto |
image | image **If max_images is greater the summary value tags are *generated sequentially as *tag * |
max_images_ = 3 | int64 |
max_outputs_ = x | ret |
operation | Operation |
ret | return |
sample_rate | audio **If max_outputs is greater the summary value tags are *generated sequentially as *tag *tag etc frames ** |
summary | |
than | audio **If max_outputs is greaterВыводит протокол-буфер Summary с аудио. |
| Функции | |
|---|---|
AudioSummary(const ::tensorflow::Scope & scope, ::tensorflow::Input tag, ::tensorflow::Input tensor, ::tensorflow::Input sample_rate) | |
AudioSummary(const ::tensorflow::Scope & scope, ::tensorflow::Input tag, ::tensorflow::Input tensor, ::tensorflow::Input sample_rate, const AudioSummary::Attrs & attrs) | |
BadColor(const TensorProto & x) | TF_MUST_USE_RESULT AttrsЦвет, используемый для пикселей с нечисловыми значениями. |
ImageSummary(const ::tensorflow::Scope & scope, ::tensorflow::Input tag, ::tensorflow::Input tensor) | |
ImageSummary(const ::tensorflow::Scope & scope, ::tensorflow::Input tag, ::tensorflow::Input tensor, const ImageSummary::Attrs & attrs) | |
MaxImages(int64 x) | Attrs |
MaxOutputs(int64 x) | Attrs |
node() const | ::tensorflow::Node * |
range(It represents the value of a *pixel in the output image).Non-finite values in the input tensor are *replaced by this tensor in the output image.The default value is the color *red.**Arguments | image **If max_images is greater the summary value tags are *generated sequentially as *tag *tag etc **The bad_color argument is the color to use in the generated images for *non finite input values It is a uint8 D tensor of length channels *Each element must be in theМаксимальное количество элементов пакетной обработки для генерации изображений. |
| Классы | |
|---|---|
| tensorflow::ops::Assert | Проверяет истинность заданного условия. |
| tensorflow::ops::HistogramSummary | Выводит протокол-буфер |
| tensorflow::ops::MergeSummary | Объединяет сводки. |
| tensorflow::ops::Print | Выводит список тензоров. |
| tensorflow::ops::PrintV2 | Выводит скалярную строку. |
| tensorflow::ops::ScalarSummary | Выводит протокол-буфер |
| tensorflow::ops::TensorSummary | Выводит протокол-буфер |
| tensorflow::ops::TensorSummaryV2 | Выводит протокол-буфер |
| tensorflow::ops::Timestamp | Возвращает время с начала эпохи в секундах. |
Переменные
Аргументы
audio **If max_outputs is greater the summary value tags are *generated sequentially as *tag *tag etc ** Arguments
аудио
audio **If max_outputs is greater the summary value tags are *generated sequentially as *tag * audio
bad_color_
TensorProto bad_color_ = Input::Initializer({255, 0, 0, 255}, {4}).AsTensorProto()изображение
image **If max_images is greater the summary value tags are *generated sequentially as *tag * image
max_images_
int64 max_images_ = 3
max_outputs_
ret max_outputs_ = x
операция
Operation operation
ret
return ret
частота дискретизации
audio **If max_outputs is greater the summary value tags are *generated sequentially as *tag *tag etc frames ** sample_rate
сводка
::tensorflow::Output summary
чем
Выводит протокол-буфер Summary с аудио.
Выводит протокол-буфер Summary с изображениями.
Сводка содержит до max_outputs значений сводки, содержащих аудио. Аудио построено из tensor, которое должно быть 3-мерным с формой [batch_size, frames, channels] или 2-мерным с формой [batch_size, frames]. Значения предполагаются в диапазоне [-1.0, 1.0] с частотой дискретизации sample_rate.
Аргумент tag — скаляр Tensor типа string. Он используется для построения tag значений сводки:
- Если
max_outputsравен 1, тег значения сводки — '*tag
Сводка содержит до max_images значений сводки, содержащих изображения. Изображения строятся из tensor, которое должно быть 4-мерным с формой [batch_size, height, width, channels], где channels может быть:
- 1:
tensorинтерпретируется как градации серого. - 3:
tensorинтерпретируется как RGB. - 4:
tensorинтерпретируется как RGBA.
Изображения имеют то же количество каналов, что и входной тензор. Для входных значений с плавающей точкой значения нормализуются для каждого изображения, чтобы уместиться в диапазоне [0, 255]. Значения uint8 остаются неизменными. Операция использует два разных алгоритма нормализации:
- Если все входные значения положительные, они масштабируются так, чтобы наибольшее из них было 255.
- Если какое-либо входное значение отрицательно, значения сдвигаются так, чтобы входное значение 0.0 находилось в 127. Затем они масштабируются так, чтобы либо наименьшее значение было 0, либо наибольшее — 255.
Аргумент tag — скаляр Tensor типа string. Он используется для построения tag значений сводки:
- Если
max_imagesравно 1, тег значения сводки — '*tag
Функции
AudioSummary
AudioSummary( const ::tensorflow::Scope & scope, ::tensorflow::Input tag, ::tensorflow::Input tensor, ::tensorflow::Input sample_rate )
AudioSummary
AudioSummary( const ::tensorflow::Scope & scope, ::tensorflow::Input tag, ::tensorflow::Input tensor, ::tensorflow::Input sample_rate, const AudioSummary::Attrs & attrs )
BadColor
TF_MUST_USE_RESULT Attrs BadColor( const TensorProto & x )
Цвет, используемый для пикселей с нечисловыми значениями.
По умолчанию — Tensor
ImageSummary
ImageSummary( const ::tensorflow::Scope & scope, ::tensorflow::Input tag, ::tensorflow::Input tensor )
ImageSummary
ImageSummary( const ::tensorflow::Scope & scope, ::tensorflow::Input tag, ::tensorflow::Input tensor, const ImageSummary::Attrs & attrs )
MaxImages
Attrs MaxImages( int64 x )
MaxOutputs
Attrs MaxOutputs( int64 x )
узел
::tensorflow::Node * node() const
диапазон
Максимальное количество элементов пакетной обработки для генерации изображений.
По умолчанию 3
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/group/logging-ops