text.max_spanning_tree_gradient
Stay organized with collections
Save and categorize content based on your preferences.
Returns a subgradient of the MaximumSpanningTree op.
text.max_spanning_tree_gradient(
mst_op, d_loss_d_max_scores, *_
)
Note that MaximumSpanningTree is only differentiable w.r.t. its |scores| input
and its |max_scores| output.
Args |
mst_op
|
The MaximumSpanningTree op being differentiated.
|
d_loss_d_max_scores
|
[B] vector where entry b is the gradient of the network
loss w.r.t. entry b of the |max_scores| output of the |mstop|.
|
*_ <a id="*">
|
The gradients w.r.t. the other outputs; ignored.
|
Returns |
- None, since the op is not differentiable w.r.t. its |num_nodes| input.
- [B,M,M] tensor where entry b,t,s is a subgradient of the network loss
w.r.t. entry b,t,s of the |scores| input, with the same dtype as
|d_loss_d_max_scores|.
|
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 2024-11-01 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 2024-11-01 UTC."],[],[]]