tensorflow::ops::EditDistance::Attrs

#include <array_ops.h>

Optional attribute setters for EditDistance.

Summary

Public attributes
normalize_ = true
bool
Public functions
Normalize(bool x)
TF_MUST_USE_RESULT Attrs
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

© 2020 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.4/api_docs/cc/struct/tensorflow/ops/edit-distance/attrs