Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CreateConvertTFQuantTypesPass (0.34 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/passes.td

        argument/result allow qint type only. For such cases, add qint <-> int
        tf.Cast around the ops so that they are still valid.
      }];
    
      let constructor = "mlir::quant::stablehlo::CreateConvertTFQuantTypesPass()";
      let dependentDialects = ["TF::TensorFlowDialect", "tf_type::TFTypeDialect"];
    }
    
    def VerifyQuantLegalization : Pass<"verify-quant-legalization", "mlir::func::FuncOp"> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 01:41:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/passes.h

    // Creates an instance of the ConvertTFQuantTypes pass, which will convert TF
    // qint types to int types and surround TF UniformQuantized ops with qint <->
    // int casts.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateConvertTFQuantTypesPass();
    
    // Creates an instance of the VerifyQuantLegalization pass, which verifies all
    // quant ops and types are lowered.
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateVerifyQuantLegalizationPass();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 01:41:18 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types_test.cc

            tensorflow::DeserializeMlirModule(module_string, &context_, &module_));
    
        pm_ = std::make_unique<mlir::PassManager>(&context_);
        pm_->addNestedPass<mlir::func::FuncOp>(
            quant::stablehlo::CreateConvertTFQuantTypesPass());
      }
      mlir::LogicalResult Run() { return pm_->run(module_.get()); }
    
     private:
      MLIRContext context_;
      OwningOpRef<ModuleOp> module_;
      std::unique_ptr<mlir::PassManager> pm_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 09:05:02 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top