Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for target_opset (0.29 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

              'has_bias': [True, False],
              'has_batch_norm': [True, False],
              'target_opset': [quant_opts_pb2.XLA],
          }])
      )
      @test_util.run_in_graph_and_eager_modes
      def test_qat_conv_model(
          self,
          activation_fn: Optional[ops.Operation],
          has_bias: bool,
          has_batch_norm: bool,
          target_opset: quant_opts_pb2.OpSet,
      ):
        class ConvModel(module.Module):
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions_drq.cc

      // Constructor used by manually creating the pass.
      explicit LiftQuantizableSpotsAsFunctionsDRQPass(
          const QuantMethod quantization_method, const OpSet target_opset,
          const int min_num_elements_for_weights) {
        quantization_method_ = quantization_method;
        target_opset_ = target_opset;
        min_num_elements_for_weights_ = min_num_elements_for_weights;
      }
    
      LiftQuantizableSpotsAsFunctionsDRQPass(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

                            OpSet target_opset)
          : quant_specs_(quant_specs) {
        weight_quantization_ = quant_specs.weight_quantization;
        target_opset_ = target_opset;
      }
    
      QuantizePass(const QuantizePass& other) : quant_specs_(other.quant_specs_) {
        weight_quantization_ = other.weight_quantization_;
        target_opset_ = other.target_opset_;
      }
    
      StringRef getArgument() const final {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

        : public mlir::OpRewritePattern<quantfork::QuantizeCastOp> {
     public:
      explicit ReplaceQuantizePattern(MLIRContext* context, OpSet target_opset)
          : OpRewritePattern<quantfork::QuantizeCastOp>(context),
            target_opset_(target_opset) {}
    
     private:
      OpSet target_opset_ = OpSet::TF;
    
      LogicalResult matchAndRewrite(quantfork::QuantizeCastOp q_op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/passes.h

    // Apply graph optimizations such as fusing and constant folding to prepare
    // lifting.
    std::unique_ptr<OperationPass<func::FuncOp>> CreatePrepareLiftingPass(
        tensorflow::quantization::OpSet target_opset);
    
    // Lifts the dynamic range quantizable spots as composite functions.
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateLiftQuantizableSpotsAsFunctionsDRQPass(
        tensorflow::quantization::QuantizationMethod::PresetMethod
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_quantized_functions.cc

    std::unique_ptr<OperationPass<ModuleOp>> CreateInsertQuantizedFunctionsPass(
        QuantMethod quantization_method, OpSet target_opset) {
      return std::make_unique<InsertQuantizedFunctionsPass>(quantization_method,
                                                            target_opset);
    }
    
    }  // namespace quant
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc

        signalPassFailure();
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreatePrepareLiftingPass(
        const OpSet target_opset) {
      return std::make_unique<PrepareLiftingPass>(target_opset);
    }
    
    static PassRegistration<PrepareLiftingPass> pass;
    
    }  // namespace quant
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/raise_custom_ops.cc

        this->target_ops_ = target_ops;
      }
    
      void runOnOperation() override;
    };
    
    void RaiseCustomOpsPass::runOnOperation() {
      auto fn = getOperation();
      OpBuilder builder(fn.getContext());
    
      absl::flat_hash_set<std::string> target_op_names(target_ops_.begin(),
                                                       target_ops_.end());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

        IntegerAttr num_bits;
        BoolAttr narrow_range;
        ::llvm::SmallVector<Operation *, 4> target_ops;
    
        target_ops.push_back(op);
        ReorderOp old_reorder_op = ::llvm::dyn_cast<ReorderOp>(op);
        if (failed(findTargetOps(old_reorder_op, rewriter, max, min, input,
                                 num_bits, narrow_range, target_ops))) {
          return failure();
        }
        shape = old_reorder_op.getODSOperands(1);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/passes.h

    std::unique_ptr<OperationPass<func::FuncOp>> CreateRaiseCustomOpsPass();
    std::unique_ptr<OperationPass<func::FuncOp>> CreateRaiseCustomOpsPass(
        const std::vector<std::string>& target_ops);
    
    // Creates raise custom ops pass, which legalize custom ops to TFL::CustomOp
    std::unique_ptr<OperationPass<func::FuncOp>> CreateLowerCustomOpsPass();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 07 21:29:34 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top