Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::EditDistance::Attrs
#include <array_ops.h>
Optional attribute setters for EditDistance.
Summary
Public functions
|
Normalize(bool x)
|
boolean (if true, edit distances are normalized by length of truth).
|
Public attributes
normalize_
bool tensorflow::ops::EditDistance::Attrs::normalize_ = true
Public functions
Normalize
TF_MUST_USE_RESULT Attrs tensorflow::ops::EditDistance::Attrs::Normalize(
bool x
)
boolean (if true, edit distances are normalized by length of truth).
The output is:
Defaults to true
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[null,null,["Last updated 2020-04-20 UTC."],[],[],null,["# tensorflow::ops::EditDistance::Attrs Struct Reference\n\ntensorflow::ops::EditDistance::Attrs\n====================================\n\n`#include \u003carray_ops.h\u003e`\n\nOptional attribute setters for [EditDistance](/versions/r1.15/api_docs/cc/class/tensorflow/ops/edit-distance#classtensorflow_1_1ops_1_1_edit_distance).\n\nSummary\n-------\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------------|--------|\n| [normalize_](#structtensorflow_1_1ops_1_1_edit_distance_1_1_attrs_1a8e0d397f56f2b4ea61636081e9ac7480)` = true` | `bool` |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Normalize](#structtensorflow_1_1ops_1_1_edit_distance_1_1_attrs_1a9c625bffe6a1e0f589f77c5e643acfd1)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/edit-distance/attrs#structtensorflow_1_1ops_1_1_edit_distance_1_1_attrs) boolean (if true, edit distances are normalized by length of truth). |\n\nPublic attributes\n-----------------\n\n### normalize_\n\n```scdoc\nbool tensorflow::ops::EditDistance::Attrs::normalize_ = true\n``` \n\nPublic functions\n----------------\n\n### Normalize\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::EditDistance::Attrs::Normalize(\n bool x\n)\n``` \nboolean (if true, edit distances are normalized by length of truth).\n\nThe output is:\n\nDefaults to true"]]