UniformQuantizedClipByValue

כיתת גמר ציבורית UniformQuantizedClipByValue

בצע קליפ לפי ערך על 'אופרנד' ה-Tensor הקוונטי.

בהינתן `אופרנד` מקומת אשר הוכמת באמצעות `סולמות` ו`אפס_נקודות`, מבצע קליפ לפי ערך באמצעות ערכי `min` ו-`max`. אם quantization_axis הוא -1 (לכל טנסור מכומד), כל האופרנד נחתך באמצעות min, max. אחרת (לכל ערוץ בקומות), החיתוך נעשה גם לכל ערוץ.

כיתות מקוננות

מעמד UniformQuantizedClipByValue.Options תכונות אופציונליות עבור UniformQuantizedClipByValue

שיטות ציבוריות

פלט <T>
asOutput ()
מחזירה את הידית הסמלית של טנזור.
סטטי <T> UniformQuantizedClipByValue <T>
צור ( scope scope, Operand <T> אופרנד, Operand <T> min, Operand <T> max, Operand <Float> סולמות, Operand <Integer> zeroPoints, Long quantizationMinVal, Long quantizationMaxVal, Options... אפשרויות)
שיטת מפעל ליצירת מחלקה העוטפת פעולת UniformQuantizedClipByValue חדשה.
פלט <T>
פלט ()
הפלט קטע את Tensor של T, שצורתו זהה לאופרנד.
static UniformQuantizedClipByValue.Options
quantizationAxis (ציר quantization ארוך)

שיטות בירושה

שיטות ציבוריות

פלט ציבורי <T> asOutput ()

מחזירה את הידית הסמלית של טנזור.

כניסות לפעולות TensorFlow הן יציאות של פעולת TensorFlow אחרת. שיטה זו משמשת להשגת ידית סמלית המייצגת את חישוב הקלט.

public static UniformQuantizedClipByValue <T> create ( Scope scope, Operand <T> operand, Operand <T> min, Operand <T> max, Operand <Float> scales, Operand <Integer> zeroPoints, Long quantizationMinVal, Long quantizationMaxVal, Options.. . אפשרויות)

שיטת מפעל ליצירת מחלקה העוטפת פעולת UniformQuantizedClipByValue חדשה.

פרמטרים
תְחוּם ההיקף הנוכחי
אופרנד חייב להיות טנסור של T.
דקה ערכי המינימום לאופרנד הקליפ. Must be a Tensor of T. Must be a scalar Tensor if quantization_axis is -1 (per-tensor quantization), otherwise 1D Tensor of size (operand.dim_size(quantization_axis),) (per-axis quantization).
מקסימום ערכי המינימום לאופרנד הקליפ. חייב להיות Tensor של T. חייב להיות Tensor סקלרי אם quantization_axis הוא -1 (כימת לכל טנזור), אחרת 1D Tensor של גודל (operand.dim_size(quantization_axis),) (כימת לכל ציר).
מאזניים ערכי הציפה המשמשים כקנה מידה(ים) בעת כימות 'אופרנד', 'min' ו-'max'. חייב להיות טנסור סקלרי אם quantization_axis הוא -1 (כיוונטיזציה לכל טנזור), אחרת טנסור 1D בגודל (operand.dim_size(quantization_axis),) (כימת לכל ציר).
אפס נקודות ערכי int32 המשמשים כנקודת אפס בעת כימות 'אופרנד', 'min' ו-'max'. Same shape condition as scales.
quantizationMinVal ערך המינימום לכימות שבו נעשה שימוש כאשר האופרנד הוכמת.
quantizationMaxVal The quantization max value that was used when operand was quantized.
אפשרויות נושא ערכי תכונות אופציונליות
החזרות
  • a new instance of UniformQuantizedClipByValue

פלט ציבורי <T> פלט ()

The output clipped Tensor of T, whose shape is same as operand.

public static UniformQuantizedClipByValue.Options quantization Axis (Long quantization Axis)

פרמטרים
quantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. If set to -1 (default), this indicates per-tensor quantization. אחרת, יש להגדיר אותו בטווח [0, operand.dims()).