flux tensoriel : : opérations : : RecadrerEtRedimensionner :: Attributs

#include <image_ops.h>

Setters d'attributs facultatifs pour CropAndResize .

Résumé

Attributs publics

extrapolation_value_ = 0.0f
float
method_ = "bilinear"
StringPiece

Fonctions publiques

ExtrapolationValue (float x)
TF_MUST_USE_RESULT Attrs
Valeur utilisée pour l'extrapolation, le cas échéant.
Method (StringPiece x)
TF_MUST_USE_RESULT Attrs
Une chaîne spécifiant la méthode d'échantillonnage pour le redimensionnement.

Attributs publics

extrapolation_value_

float tensorflow::ops::CropAndResize::Attrs::extrapolation_value_ = 0.0f

méthode_

StringPiece tensorflow::ops::CropAndResize::Attrs::method_ = "bilinear"

Fonctions publiques

Valeur d'extrapolation

TF_MUST_USE_RESULT Attrs tensorflow::ops::CropAndResize::Attrs::ExtrapolationValue(
  float x
)

Valeur utilisée pour l'extrapolation, le cas échéant.

La valeur par défaut est 0

Méthode

TF_MUST_USE_RESULT Attrs tensorflow::ops::CropAndResize::Attrs::Method(
  StringPiece x
)

Une chaîne spécifiant la méthode d'échantillonnage pour le redimensionnement.

Il peut être soit "bilinear" , soit "nearest" et est par défaut "bilinear" . Actuellement, deux méthodes d'échantillonnage sont prises en charge : bilinéaire et voisin le plus proche.

La valeur par défaut est "bilinéaire"