Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 51 for onStop (0.11 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.cc

        return "";
      }
    
      auto assigned_value_operand = assign_var_op.getOperand(1);
      auto const_op =
          llvm::dyn_cast<mlir::TF::ConstOp>(assigned_value_operand.getDefiningOp());
      if (!const_op) {
        assign_var_op->emitRemark(
            "Operand idx 1 is not a tf.ConstOp. The initializing tensor is not "
            "saved to checkpoint.");
        return "";
      }
    
      Tensor const_tensor{};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:36:55 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

        if (func.getNumArguments() == 0) {
          return;
        }
    
        auto builder = OpBuilder::atBlockBegin(&func.front());
    
        llvm::SmallDenseMap<llvm::StringRef, TF::ConstOp> const_ops;
        llvm::BitVector arg_indexes_to_remove(func.getNumArguments());
    
        // Replace arguments with const ops.
        for (BlockArgument argument : func.getArguments()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. tensorflow/compiler/mlir/tfrt/tests/mlrt/inline.mlir

    }
    
    // CHECK-LABEL: func @while_test_if
    // CHECK-SAME: -> !tf_mlrt.tensor
    func.func @while_test_if(%cond: tensor<i1>, %x: tensor<i1>, %y: tensor<i1>) -> (tensor<i32>) {
      // CHECK: [[CONST:%.*]] = tf_mlrt.constop {tensor_proto = "\08\03\12\00"}
      %cst = "tf.Const"() {__op_key = 2: i32, device = "/device:CPU:0", value = dense<0> : tensor<i32>} : () -> tensor<i32>
      // Predicate should be inlined.
      // CHECK-NEXT: tf_mlrt.predicate
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 01:01:31 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. manifests/zzz_profile.yaml

    Unfortunately, Helm provides us (1) and (3) together (as .Values), making it hard to insert (2).
    
    However, we can workaround this by placing all of (1) under a specific key (.Values.defaults).
    We can then merge the profile onto the defaults, then the user settings onto that.
    Finally, we can set all of that under .Values so the chart behaves without awareness.
    */}}
    {{- $defaults := $.Values.defaults }}
    {{- $_ := unset $.Values "defaults" }}
    {{- $profile := dict }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 22:30:06 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. manifests/charts/base/templates/zzz_profile.yaml

    Unfortunately, Helm provides us (1) and (3) together (as .Values), making it hard to insert (2).
    
    However, we can workaround this by placing all of (1) under a specific key (.Values.defaults).
    We can then merge the profile onto the defaults, then the user settings onto that.
    Finally, we can set all of that under .Values so the chart behaves without awareness.
    */}}
    {{- $defaults := $.Values.defaults }}
    {{- $_ := unset $.Values "defaults" }}
    {{- $profile := dict }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 22:30:06 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. manifests/charts/default/templates/zzz_profile.yaml

    Unfortunately, Helm provides us (1) and (3) together (as .Values), making it hard to insert (2).
    
    However, we can workaround this by placing all of (1) under a specific key (.Values.defaults).
    We can then merge the profile onto the defaults, then the user settings onto that.
    Finally, we can set all of that under .Values so the chart behaves without awareness.
    */}}
    {{- $defaults := $.Values.defaults }}
    {{- $_ := unset $.Values "defaults" }}
    {{- $profile := dict }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 22:30:06 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top