Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::InplaceSub
#include <array_ops.h>
Subtracts v
into specified rows of x
.
Summary
Computes y = x; y[i, :] -= v; return y.
Args:
- scope: A Scope object
- x: A
Tensor
of type T.
- i: A vector. Indices into the left-most dimension of
x
.
- v: A
Tensor
of type T. Same dimension sizes as x except the first dimension, which must be the same as i's size.
Returns:
Output
: A Tensor
of type T. An alias of x
. The content of y
is undefined if there are duplicates in i
.
Public attributes
Public functions
node
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-15 UTC."],[],[],null,["# tensorflow::ops::InplaceSub Class Reference\n\ntensorflow::ops::InplaceSub\n===========================\n\n`#include \u003carray_ops.h\u003e`\n\nSubtracts `v` into specified rows of `x`.\n\nSummary\n-------\n\nComputes y = x; y\\[i, :\\] -= v; return y.\n\nArgs:\n\n- scope: A [Scope](/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- x: A [Tensor](/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) of type T.\n- i: A vector. Indices into the left-most dimension of `x`.\n- v: A [Tensor](/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) of type T. Same dimension sizes as x except the first dimension, which must be the same as i's size.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): A [Tensor](/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) of type T. An alias of `x`. The content of `y` is undefined if there are duplicates in `i`.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [InplaceSub](#classtensorflow_1_1ops_1_1_inplace_sub_1a1d671002c01f41fc9515b017cd3d0a2a)`(const ::`[tensorflow::Scope](/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` x, ::`[tensorflow::Input](/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` i, ::`[tensorflow::Input](/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` v)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_inplace_sub_1a5fcdd5f9defcd72b7c66580522e39a29) | [Operation](/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [y](#classtensorflow_1_1ops_1_1_inplace_sub_1a629a120f097dd646d8d51588bf5a01d6) | `::`[tensorflow::Output](/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_inplace_sub_1a3d74bbe142eec7e547bccefcdde97fe1)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_inplace_sub_1a900071a1f4a6987e32cfdd6c60677386)`() const ` | |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_inplace_sub_1ab48e6346ac5f9b4b96d91d44c0ad449c)`() const ` | |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### y\n\n```text\n::tensorflow::Output y\n``` \n\nPublic functions\n----------------\n\n### InplaceSub\n\n```gdscript\n InplaceSub(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input x,\n ::tensorflow::Input i,\n ::tensorflow::Input v\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n```"]]