Uh oh!
There was an error while loading. Please reload this page.
[TFLite] Cast operator adapted for MLIR-based convertor - #7639
Conversation
| cast_options.Init(op_options.Bytes, op_options.Pos) | ||
| cast_dtype = cast_options.OutDataType() | ||
| else: | ||
| cast_dtype = self.get_output_tensors(op)[0].tensor.Type() |
There was a problem hiding this comment.
Is this because the cast operator can be in 2 forms, one with the type specified by BuiltinOptions.CastOptions and the other type is where there is no output data type specified by BuiltinOptions.CastOptions but we can derive the output type of the cast operator based on the type of the output tensor for the Cast operator itself ?
Is that worth stating in the commit message or in a comment ?
Ramana
u99127
commented
Mar 12, 2021
@anijain2305@FrozenGene - could you please help review ? |
anijain2305
commented
Mar 15, 2021
LGTM, please add a comment as Ramana suggested. |
d-smirnov
commented
Mar 16, 2021
@u99127@anijain2305 |
u99127
commented
Mar 16, 2021
Ok, please document this as a comment in the source. Ramana |
d-smirnov
commented
Mar 16, 2021
@u99127 Added comment to the source file |
anijain2305
commented
Mar 18, 2021
@d-smirnov Can you please check the CI error? I will merge when it passes. Assinging to myself. |
Cast operator now can be executed in MLIR-based version. Unit test updated Change-Id: I30e5c1c9d69355116b560af8f6d0582b2d593538
Change-Id: I3e2d29ef201283de337168d0b82679b63ca2fcf4
anijain2305
commented
Mar 19, 2021
Thanks @d-smirnov@u99127 |
* main: [AutoScheduler] Add function name in message (apache#7703) [Vulkan] Workaround for zero size allocation (apache#7691) Change behavior of onnx importer to throw when user provides an input no in the graph. (apache#7699) Free TensorRT engine and context (apache#7702) [TFLite] Cast operator adapted for MLIR-based convertor (apache#7639) [CPP_RPC] allow user supplied work dir (apache#7670) Default value for graph_runtime Init lookup_linked_param_func (apache#7676)
* [TFLite] Cast operator adapted for MLIR-based convertor Cast operator now can be executed in MLIR-based version. Unit test updated Change-Id: I30e5c1c9d69355116b560af8f6d0582b2d593538 * Comment added Change-Id: I3e2d29ef201283de337168d0b82679b63ca2fcf4
* [TFLite] Cast operator adapted for MLIR-based convertor Cast operator now can be executed in MLIR-based version. Unit test updated Change-Id: I30e5c1c9d69355116b560af8f6d0582b2d593538 * Comment added Change-Id: I3e2d29ef201283de337168d0b82679b63ca2fcf4
Cast operator now can be executed in MLIR-based version.
Unit test updated