Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetStableHloQuantConstraints (0.35 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

        // For ops that require same operand and result types, use explicit
        // requantize op rather than using `entry_func_op`'s result as op result.
        auto spec = GetStableHloQuantConstraints(singular_op);
        const bool has_same_operand_and_result_type =
            spec->has_same_operand_and_result_type_requirement;
        if (has_same_operand_and_result_type) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h

          if (candidate_op->hasTrait<OpTrait::IsTerminator>()) {
            return failure();
          }
    
          if (!IsOpQuantizableStableHlo(candidate_op)) {
            return failure();
          }
    
          if (GetStableHloQuantConstraints(candidate_op)
                  ->has_same_scale_requirement &&
              !IsConnectedWithQuantizedCompsiteFunction(candidate_op)) {
            return failure();
          }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec_test.cc

      ASSERT_TRUE(module_op);
    
      func::FuncOp main_fn = FindMainFuncOp(*module_op);
      ASSERT_THAT(main_fn, NotNull());
    
      Operation* gather_op = FindOperationOfType<GatherOp>(main_fn);
      const auto spec = GetStableHloQuantConstraints(gather_op);
    
      EXPECT_THAT(spec, NotNull());
      EXPECT_THAT(spec->has_same_operand_and_result_type_requirement, IsTrue());
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 14.8K bytes
    - Viewed (0)
Back to top