Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for bitcastToAPInt (0.17 sec)

  1. tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc

    // Lower the ratio for identifying block configuration for quantized constants.
    constexpr float kBlockOverRandomSparsityRatioQuant = 0.8;
    
    Eigen::half APFloatToEigenHalf(const APFloat& val) {
      uint16_t raw_data = val.bitcastToAPInt().getZExtValue();
      return Eigen::numext::bit_cast<Eigen::half>(raw_data);
    }
    
    APFloat EigenHalfToAPFloat(const Eigen::half& val) {
      uint16_t raw_data = Eigen::numext::bit_cast<uint16_t>(val);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/optimize.cc

          bool is_mul = llvm::isa<MulOp>(binary_op);
          auto new_filter =
              filter_cst.mapValues(filter_type.getElementType(), [&](APFloat it) {
                return (is_mul ? it * cst_value : it / cst_value).bitcastToAPInt();
              });
          // We recreate the constant op in case it is shared by the other ops. This
          // might increase the model size.
          auto new_filter_op = rewriter.create<ConstOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top