Операции ведения журнала
Краткое описание
| Переменные | |
|---|---|
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 | Возвращает время в секундах, прошедшее с начала эпохи. |
Переменные
Args
audio **If max_outputs is greater the summary value tags are *generated sequentially as *tag *tag etc ** Args
audio
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
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 operation
ret
return ret
sample_rate
audio **If max_outputs is greater the summary value tags are *generated sequentially as *tag *tag etc frames ** sample_rate
summary
::tensorflow::Output summary
than
audio **If max_outputs is greater than
Выводит буфер протокола Summary с аудио.
Выводит буфер протокола Summary с изображениями.
Сводка содержит не более max_outputs значений сводки с аудио. Аудио создается из tensor, который должен быть трехмерным и иметь форму [batch_size, frames, channels] или двумерным и иметь форму [batch_size, frames]. Предполагается, что значения находятся в диапазоне [-1.0, 1.0], а частота дискретизации равна sample_rate.
Аргумент tag — это скаляр Tensor типа string. Он используется для формирования tag значений сводки:
- Если
max_outputsравно 1, тег значения сводки — '*tag
Сводка содержит не более max_images значений сводки с изображениями. Изображения создаются из tensor, который должен быть четырехмерным и иметь форму [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 )
node
::tensorflow::Node * node() const
range
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/api_docs/cc/group/logging-ops