Warning: This API is deprecated and will be removed in a future
version of TensorFlow after
the replacement is stable.
ApproxTopK.Options
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Methods
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Public Methods
public
ApproxTopK.Options
aggregateToTopk
(Boolean aggregateToTopk)
Parameters
aggregateToTopk |
When true, aggregates approximate results to top-k. When false, returns the
approximate results. The number of the approximate results is implementation
defined and is greater equals to the specified `k`.
|
Parameters
isMaxK |
When true, computes max-k; otherwise computes min-k.
|
public
ApproxTopK.Options
recallTarget
(Float recallTarget)
Parameters
recallTarget |
Recall target for the approximation. Range in (0,1]
|
public
ApproxTopK.Options
reductionDimension
(Long reductionDimension)
Parameters
reductionDimension |
Integer dimension along which to search. Default: -1.
|
Parameters
reductionInputSizeOverride |
When set to a positive value, it overrides the size determined by
`input[reduction_dim]` for evaluating the recall. This option is useful when
the given `input` is only a subset of the overall computation in SPMD or
distributed pipelines, where the true input size cannot be deferred by the
`input` shape.
|
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 2022-09-07 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 2022-09-07 UTC."],[],[],null,["# ApproxTopK.Options\n\npublic static class **ApproxTopK.Options** \nOptional attributes for [ApproxTopK](/api_docs/java/org/tensorflow/op/core/ApproxTopK) \n\n### Public Methods\n\n|--------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ApproxTopK.Options](/api_docs/java/org/tensorflow/op/core/ApproxTopK.Options) | [aggregateToTopk](/api_docs/java/org/tensorflow/op/core/ApproxTopK.Options#aggregateToTopk(java.lang.Boolean))(Boolean aggregateToTopk) |\n| [ApproxTopK.Options](/api_docs/java/org/tensorflow/op/core/ApproxTopK.Options) | [isMaxK](/api_docs/java/org/tensorflow/op/core/ApproxTopK.Options#isMaxK(java.lang.Boolean))(Boolean isMaxK) |\n| [ApproxTopK.Options](/api_docs/java/org/tensorflow/op/core/ApproxTopK.Options) | [recallTarget](/api_docs/java/org/tensorflow/op/core/ApproxTopK.Options#recallTarget(java.lang.Float))(Float recallTarget) |\n| [ApproxTopK.Options](/api_docs/java/org/tensorflow/op/core/ApproxTopK.Options) | [reductionDimension](/api_docs/java/org/tensorflow/op/core/ApproxTopK.Options#reductionDimension(java.lang.Long))(Long reductionDimension) |\n| [ApproxTopK.Options](/api_docs/java/org/tensorflow/op/core/ApproxTopK.Options) | [reductionInputSizeOverride](/api_docs/java/org/tensorflow/op/core/ApproxTopK.Options#reductionInputSizeOverride(java.lang.Long))(Long reductionInputSizeOverride) |\n\n### Inherited Methods\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public [ApproxTopK.Options](/api_docs/java/org/tensorflow/op/core/ApproxTopK.Options)\n**aggregateToTopk**\n(Boolean aggregateToTopk)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| aggregateToTopk | When true, aggregates approximate results to top-k. When false, returns the approximate results. The number of the approximate results is implementation defined and is greater equals to the specified \\`k\\`. |\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\n#### public [ApproxTopK.Options](/api_docs/java/org/tensorflow/op/core/ApproxTopK.Options)\n**isMaxK**\n(Boolean isMaxK)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| isMaxK | When true, computes max-k; otherwise computes min-k. |\n|--------|------------------------------------------------------|\n\n#### public [ApproxTopK.Options](/api_docs/java/org/tensorflow/op/core/ApproxTopK.Options)\n**recallTarget**\n(Float recallTarget)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| recallTarget | Recall target for the approximation. Range in (0,1\\] |\n|--------------|------------------------------------------------------|\n\n#### public [ApproxTopK.Options](/api_docs/java/org/tensorflow/op/core/ApproxTopK.Options)\n**reductionDimension**\n(Long reductionDimension)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| reductionDimension | Integer dimension along which to search. Default: -1. |\n|--------------------|-------------------------------------------------------|\n\n#### public [ApproxTopK.Options](/api_docs/java/org/tensorflow/op/core/ApproxTopK.Options)\n**reductionInputSizeOverride**\n(Long reductionInputSizeOverride)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| reductionInputSizeOverride | When set to a positive value, it overrides the size determined by \\`input\\[reduction_dim\\]\\` for evaluating the recall. This option is useful when the given \\`input\\` is only a subset of the overall computation in SPMD or distributed pipelines, where the true input size cannot be deferred by the \\`input\\` shape. |\n|----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|"]]