Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::OneHot::Attrs
#include <array_ops.h>
Optional attribute setters for OneHot.
Summary
Public attributes
|
axis_ = -1
|
int64
|
Public functions
|
Axis(int64 x)
|
The axis to fill (default: -1, a new inner-most axis).
|
Public attributes
axis_
int64 tensorflow::ops::OneHot::Attrs::axis_ = -1
Public functions
Axis
TF_MUST_USE_RESULT Attrs tensorflow::ops::OneHot::Attrs::Axis(
int64 x
)
The axis to fill (default: -1, a new inner-most axis).
Defaults to -1
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 2021-11-15 UTC.
[null,null,["Last updated 2021-11-15 UTC."],[],[],null,["# tensorflow::ops::OneHot::Attrs Struct Reference\n\ntensorflow::ops::OneHot::Attrs\n==============================\n\n`#include \u003carray_ops.h\u003e`\n\nOptional attribute setters for [OneHot](/api_docs/cc/class/tensorflow/ops/one-hot#classtensorflow_1_1ops_1_1_one_hot).\n\nSummary\n-------\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------|---------|\n| [axis_](#structtensorflow_1_1ops_1_1_one_hot_1_1_attrs_1a2652b47252da31a8ca3eff67d677ccc4)` = -1` | `int64` |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Axis](#structtensorflow_1_1ops_1_1_one_hot_1_1_attrs_1afc9b5c290d8fefa2f67f82b640d27ab9)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/one-hot/attrs#structtensorflow_1_1ops_1_1_one_hot_1_1_attrs) The axis to fill (default: -1, a new inner-most axis). |\n\nPublic attributes\n-----------------\n\n### axis_\n\n```scdoc\nint64 tensorflow::ops::OneHot::Attrs::axis_ = -1\n``` \n\nPublic functions\n----------------\n\n### Axis\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::OneHot::Attrs::Axis(\n int64 x\n)\n``` \nThe axis to fill (default: -1, a new inner-most axis).\n\nDefaults to -1"]]