It must return a Tensor with the given dtype if specified. If the
conversion function creates a new Tensor, it should use the given
name if specified. All exceptions will be propagated to the caller.
The conversion function may return NotImplemented for some
inputs. In this case, the conversion process will continue to try
subsequent conversion functions.
If as_ref is true, the function must return a Tensor reference,
such as a Variable.
Args
base_type
The base type or tuple of base types for all objects that
conversion_func accepts.
conversion_func
A function that converts instances of base_type to
Tensor.
priority
Optional integer that indicates the priority for applying this
conversion function. Conversion functions with smaller priority values run
earlier than conversion functions with larger priority values. Defaults to
100.
Raises
TypeError
If the arguments do not have the appropriate type.
[[["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 2023-03-17 UTC."],[],[]]