- Sort Score
- Result 10 results
- Languages All
Results 11 - 17 of 17 for GatherOp (0.55 sec)
-
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
} //===----------------------------------------------------------------------===// // Gather op //===----------------------------------------------------------------------===// LogicalResult GatherOp::verify() { GatherOp op = *this; ShapedType params_type = op.getParams().getType().cast<ShapedType>(); // TFLite gather kernel supports 1D string input only. if (params_type.getElementType().isa<mlir::TF::StringType>()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
ConversionPatternRewriter &rewriter) const override { Value input = adaptor.getOperands()[0]; Value index = adaptor.getOperands()[1]; rewriter.replaceOpWithNewOp<TF::GatherOp>(op, op.getType(), input, index, rewriter.getBoolAttr(true)); return success(); } }; struct ConvertTensorListLength
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
// Here we leave 'slice_sizes' as an Attr, without defining a new // DynamicGatherOp, since GatherDimensionNumbers has already provide enough // information for shape inference and code generation of mhlo::GatherOp. '?' // will be filled into slice_sizes for dimensions that are dynamic sized. // TODO(disc): To recover static special case's performance with folding and // canonicalization.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc
converter); mhlo::PopulateLegalizeTfPatterns(context, &patterns); mlir::odml::PopulateLegalizeHloToTfPatterns(&patterns, context); mhlo::GatherOp::getCanonicalizationPatterns(patterns, context); return applyPartialConversion(func, target, std::move(patterns)); } // Convert rfft to rfft2d. // The transformation pattern looks like below: //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 64.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
BufferOffset<flatbuffers::Vector<unsigned int>> BuildVhloPrecisionConfigV1( mlir::vhlo::ArrayV1Attr precisionConfig); std::optional<BufferOffset<tflite::Operator>> BuildStablehloGatherOp( mlir::stablehlo::GatherOp gather_op, const std::vector<int32_t>& operands, const std::vector<int32_t>& results); std::optional<BufferOffset<tflite::Operator>> BuildStablehloScatterOp( mlir::stablehlo::ScatterOp scatter_op,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
namespace { // If the input of TensorListGetItemOp is TensorListFromTensorOp and the // TensorListFromTensorOp is only used by TensorListGetItemOp (not modified by // other TensorList ops), we can convert it to a GatherOp. class ConvertTensorListGetItemOpOfTensorListFromTensorOpToGather : public OpRewritePattern<TensorListGetItemOp> { using OpRewritePattern<TensorListGetItemOp>::OpRewritePattern;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
<< ") to be greater than or equal to batch_dims (" << batch_dims << ")"; } } return success(); } void GatherOp::getCanonicalizationPatterns(RewritePatternSet& results, MLIRContext* context) { results.add<GatherToV2>(context); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0)