- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for GatherOp (0.12 sec)
-
tensorflow/compiler/mlir/lite/transforms/reduce_type_precision.cc
return success(); } }; class SanitizeGatherOpOutputToI4 : public OpRewritePattern<TFL::GatherOp> { public: using OpRewritePattern<TFL::GatherOp>::OpRewritePattern; LogicalResult matchAndRewrite(TFL::GatherOp op, PatternRewriter &rewriter) const override { auto const_type = mlir::dyn_cast<ShapedType>(op.getOperand(0).getType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_op_quant_spec.cc
TF::GatherOp, TF::GatherV2Op, TF::XlaGatherOp, TF::ExpandDimsOp, TF::SqueezeOp, TF::TransposeOp>(op); } bool IsOpWithQuantizableTrait(Operation* op) { // Supported quantizable ops. return isa<TF::XlaConvV2Op, TF::XlaDotV2Op, TF::MatMulOp, TF::Conv2DOp, TF::GatherOp, TF::GatherV2Op, TF::XlaGatherOp,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec.cc
mlir::stablehlo::PadOp, mlir::stablehlo::ReduceWindowOp, mlir::stablehlo::ReshapeOp, mlir::stablehlo::SelectOp, mlir::stablehlo::SliceOp, mlir::stablehlo::TransposeOp>(op)) { scale_spec->has_same_scale_requirement = true; } if (llvm::isa<mlir::stablehlo::DynamicSliceOp, mlir::stablehlo::GatherOp,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 05:56:10 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.cc
auto batch_axes_tensor = builder.create<TFL::ConstOp>(builder.getI64TensorAttr( dot_dimensions_info.batch_dimensions().AxesArray())); auto batch_dims = builder.create<TFL::GatherOp>( RankedTensorType::get( {static_cast<int>( dot_dimensions_info.batch_dimensions().AxesArray().size())}, builder.getIntegerType(32)),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec_test.cc
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h" #include "tensorflow/core/platform/test.h" namespace mlir::quant::stablehlo { namespace { using ::mlir::stablehlo::GatherOp; using ::testing::IsEmpty; using ::testing::IsTrue; using ::testing::NotNull; using ::testing::Pair; using ::testing::UnorderedElementsAre; using IsOpQuantizableStableHloTest = ::mlir::quant::QuantizationTestBase;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 04 07:19:09 UTC 2024 - 14.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold.cc
absl::flat_hash_set<int> quantizable_operands; if (isa<TF::DepthwiseConv2dNativeOp, TF::Conv2DOp, TF::Conv3DOp, TF::MatMulOp, TF::BatchMatMulOp>(op)) { quantizable_operands.insert(1); } else if (isa<TF::GatherOp>(op)) { quantizable_operands.insert(0); } else if (auto einsum_op = dyn_cast<TF::EinsumOp>(op)) { if (IsEinsumSupportedByXlaDotV2(einsum_op.getEquationAttr())) { quantizable_operands.insert(1); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc
using ::mlir::stablehlo::ConcatenateOp; using ::mlir::stablehlo::ConvolutionOp; using ::mlir::stablehlo::DotGeneralOp; using ::mlir::stablehlo::DynamicBroadcastInDimOp; using ::mlir::stablehlo::GatherOp; using ::mlir::stablehlo::GetDimensionSizeOp; using ::mlir::stablehlo::ReshapeOp; using ::mlir::stablehlo::UniformQuantizeOp; using ::stablehlo::quantization::Method; using ::stablehlo::quantization::QuantizedDimension;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 06:04:36 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc
auto gather_lhs = rewriter->create<TF::GatherOp>( loc, RankedTensorType::get({static_cast<int>(bl_index.size())}, rewriter->getIntegerType(32)), shape_lhs->getResults()[0], lhs_index_tensor->getResults()[0], true_attr); auto rhs_index_tensor = createI32ConstantOp(r_index, loc, rewriter); auto gather_rhs = rewriter->create<TF::GatherOp>( loc,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
auto batch_axes_tensor = builder.create<TF::ConstOp>(builder.getI64TensorAttr( dot_dimensions_info.batch_dimensions().AxesArray())); auto batch_dims = builder.create<TF::GatherOp>( RankedTensorType::get( {static_cast<int>( dot_dimensions_info.batch_dimensions().AxesArray().size())}, builder.getIntegerType(32)),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
// Condition 4 - shape of slice should be same with shape of input on the // offset dimensions. class RewriteQuantizedGatherOp : public OpRewritePattern<stablehlo::GatherOp> { public: using OpRewritePattern<stablehlo::GatherOp>::OpRewritePattern; LogicalResult match(stablehlo::GatherOp op) const override { const Type input_type = op.getOperand().getType(); const Type output_type = op.getResult().getType();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 09:00:19 UTC 2024 - 99.8K bytes - Viewed (0)