Операции ведения журнала
Краткое описание
| Переменные | |
|---|---|
Args | 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.**Args | 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 ** Args
аудио
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
чем
audio **If max_outputs is greater than
Выводит протокол 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
диапазон
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 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.**Args
Максимальное количество элементов пакета для генерации изображений.
По умолчанию 3
© 2022 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.9/api_docs/cc/group/logging-ops