Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 370 for onStop (0.13 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

                                        pad_beg, pad_end, 0,       0};
      auto paddings = DenseIntElementsAttr::get(padding_type, values);
      // Update pad_op paddings.
      op.setOperand(1, builder.create<TF::ConstOp>(loc, paddings));
    
      // Set input type.
      auto input = op.getOperand(0);
      SmallVector<int64_t, 4> transform_shape = {
          pad_input_shape[0], pad_input_shape[1] / block_size,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

    Value CreateScalarConst(int32_t value, OpBuilder builder, Location loc) {
      auto attr = DenseIntElementsAttr::get(
          tensorflow::GetTypeFromTFTensorShape({}, builder.getI32Type()), value);
      return builder.create<TF::ConstOp>(loc, attr);
    }
    
    Value GetR1Const(ArrayRef<int64_t> r1, OpBuilder builder, Location loc,
                     int bitwidth) {
      llvm::SmallVector<APInt, 4> values;
      int64_t rank = r1.size();
      values.reserve(rank);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.td

    include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td"
    include "mlir/IR/OpBase.td"
    include "mlir/Dialect/Arith/IR/ArithOps.td"
    
    def ConstDenseElementsI32ZeroAttr
      : NativeCodeCall<"$_builder.create<TFL::ConstOp>($_loc, DenseElementsAttr::get(RankedTensorType::get({}, $_builder.getI32Type()), {0}))">;
    
    def Size1InputRange : NativeCodeCall<
      "SmallVector<Value, 1>{$0}">;
    
    def Size2InputRange : NativeCodeCall<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 18 07:12:51 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.h

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    
    namespace mlir {
    namespace quant {
    
    std::optional<TF::PartitionedCallOp> ApplyUniformQuantization(
        PatternRewriter& rewriter, TF::ConstOp op,
        tensorflow::quantization::QuantizationComponentSpec& weight_spec);
    
    }  // namespace quant
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 24 07:44:40 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/prepare_quantize.cc

        q_op->replaceAllUsesWith(new_qcast);
        return success();
      }
    };
    
    class ConvertTFConstOpToArithConstOp : public OpRewritePattern<TF::ConstOp> {
     public:
      using OpRewritePattern::OpRewritePattern;
      LogicalResult matchAndRewrite(TF::ConstOp op,
                                    PatternRewriter& rewriter) const override {
        rewriter.replaceOpWithNewOp<arith::ConstantOp>(op, op.getValue());
        return success();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 05:11:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/tfxla_device_specific_transforms.cc

      tensorflow::Algorithm tensorflow_rng =
          tensorflow::ToTensorflowAlgorithm(xla_rng);
    
      OpBuilder opbuilder(get_alg_op);
    
      auto tf_const = opbuilder.create<TF::ConstOp>(
          get_alg_op->getLoc(), opbuilder.getI32IntegerAttr((int)tensorflow_rng));
    
      get_alg_op->replaceAllUsesWith(tf_const);
      get_alg_op->erase();
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 05:56:39 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op_test.cc

      quant_spec.set_tensor_type(QuantizationComponentSpec::TENSORTYPE_INT_8);
    
      std::optional<TF::PartitionedCallOp> dequantize_op = ApplyUniformQuantization(
          pattern_rewriter, cast<TF::ConstOp>(value.getDefiningOp()), quant_spec);
      EXPECT_TRUE(dequantize_op.has_value());
      EXPECT_EQ(dequantize_op.value().func().getName().str(),
                "composite_dequantize_uniform");
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    
    namespace tflite {
    namespace {
    
    bool IsConst(mlir::Operation* op) {
      return llvm::isa<mlir::arith::ConstantOp, mlir::TF::ConstOp,
                       mlir::TFL::ConstOp, mlir::TFL::QConstOp>(op);
    }
    
    bool IsOpSupported(mlir::Operation* op, const std::string& hardware) {
      auto* devce_hardware = mlir::TFL::tac::GetTargetHardware(hardware);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/util.cc

    }
    
    Value BuildIntConstOp(ImplicitLocOpBuilder& builder,
                          ConversionPatternRewriter& rewriter, int64_t const_value,
                          Type type) {
      Value result_const =
          builder.create<TF::ConstOp>(rewriter.getIntegerAttr(type, const_value));
      return result_const;
    }
    
    Value BuildIntArrayConstOp(ImplicitLocOpBuilder& builder,
                               ConversionPatternRewriter& rewriter,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/python/unfreeze_constants.cc

          /*add_passes_func=*/
          [](mlir::PassManager &pm) {
            pm.addPass(mlir::quant::CreateInsertRestoreOpPass());
            pm.addPass(mlir::quant::CreateInsertSaveOpPass());
            // Initialization by `tf.ConstOp` is no longer required as there is
            // a `tf.RestoreV2Op` now.
            pm.addPass(
                mlir::quant::CreateRemoveVariableInitializationByConstPass());
          },
          ctx, module_op);
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 11:07:03 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top