Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::PreventGradient::Attrs
#include <array_ops.h>
Optional attribute setters for PreventGradient.
Summary
Public attributes
|
message_ = ""
|
StringPiece
|
Public functions
|
Message(StringPiece x)
|
Will be printed in the error when anyone tries to differentiate this operation.
|
Public attributes
message_
StringPiece tensorflow::ops::PreventGradient::Attrs::message_ = ""
Public functions
Message
TF_MUST_USE_RESULT Attrs tensorflow::ops::PreventGradient::Attrs::Message(
StringPiece x
)
Will be printed in the error when anyone tries to differentiate this operation.
Defaults to ""
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. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tensorflow::ops::PreventGradient::Attrs Struct Reference\n\ntensorflow::ops::PreventGradient::Attrs\n=======================================\n\n`#include \u003carray_ops.h\u003e`\n\nOptional attribute setters for [PreventGradient](/versions/r2.14/api_docs/cc/class/tensorflow/ops/prevent-gradient#classtensorflow_1_1ops_1_1_prevent_gradient).\n\nSummary\n-------\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------------------|---------------|\n| [message_](#structtensorflow_1_1ops_1_1_prevent_gradient_1_1_attrs_1a85ca8381a662c1cca8aabfe5a0ebc560)` = \"\"` | `StringPiece` |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Message](#structtensorflow_1_1ops_1_1_prevent_gradient_1_1_attrs_1a5fa5b963ff1b0088230db1ecc380bd41)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/prevent-gradient/attrs#structtensorflow_1_1ops_1_1_prevent_gradient_1_1_attrs) Will be printed in the error when anyone tries to differentiate this operation. |\n\nPublic attributes\n-----------------\n\n### message_\n\n```scdoc\nStringPiece tensorflow::ops::PreventGradient::Attrs::message_ = \"\"\n``` \n\nPublic functions\n----------------\n\n### Message\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::PreventGradient::Attrs::Message(\n StringPiece x\n)\n``` \nWill be printed in the error when anyone tries to differentiate this operation.\n\nDefaults to \"\""]]