Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 36 for Bitcast (0.24 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/tests/quantize.mlir

    // CHECK-SAME: (tensor<*xf32>) -> tensor<*xf32>
    // CHECK: %[[round:.*]] = "tf.Round"(%[[avgpool_f32]])
    // CHECK: %[[icast:.*]] = "tf.Cast"(%[[round]]) <{Truncate = false}> : (tensor<*xf32>) -> tensor<*xi8>
    // CHECK: %[[sc2:.*]] = "quantfork.scast"(%[[icast]])
    // CHECK: %[[dq:.*]] = "quantfork.dcast"(%[[sc2]]) : (tensor<*x!quant.uniform<i8:f32, 5.000000e-02:-10>>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 19:32:28 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    	case 'Z':
    		return st.localName()
    	case 'U':
    		a, isCast := st.unqualifiedName(nil)
    		if isCast {
    			st.setTemplate(a, nil)
    		}
    		return a, false
    	case 'S':
    		if len(st.str) < 2 {
    			st.advance(1)
    			st.fail("expected substitution index")
    		}
    		var a AST
    		isCast := false
    		subst := false
    		if st.str[1] == 't' {
    			st.advance(2)
    			a, isCast = st.unqualifiedName(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc

              uint16_t bit_repr = llvm::support::endian::readNext<
                  uint16_t, llvm::endianness::native, llvm::support::unaligned>(
                  data);
              values.push_back(Eigen::numext::bit_cast<Eigen::half>(bit_repr));
            }
    
            return mlir::ElementsAttr(
                DenseElementsAttr::get(shaped_type, ArrayRef<Eigen::half>(values)));
          } else {
            std::vector<Eigen::bfloat16> values;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. internal/s3select/sql/funceval.go

    	v, err := e.evalNode(r, tableAlias)
    	if err != nil {
    		return nil, err
    	}
    
    	switch castType {
    	case castInt, castInteger:
    		i, err := intCast(v)
    		return FromInt(i), err
    
    	case castFloat:
    		f, err := floatCast(v)
    		return FromFloat(f), err
    
    	case castString:
    		s, err := stringCast(v)
    		return FromString(s), err
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc

    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);
      return APFloat(APFloat::IEEEhalf(), APInt(16, raw_data));
    }
    
    void PopulateEncodingParams(const std::vector<int>& block_size,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/tests/quantize_xla.mlir

    // CHECK-SAME: (tensor<*xf32>) -> tensor<*xf32>
    // CHECK: %[[round:.*]] = "tf.Round"(%[[avgpool_f32]])
    // CHECK: %[[icast:.*]] = "tf.Cast"(%[[round]]) <{Truncate = false}> : (tensor<*xf32>) -> tensor<*xi8>
    // CHECK: %[[reshape:.*]] = "tf.Reshape"(%[[icast]]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 19:32:28 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.cc

        auto dequantize_func = [&](const APInt& ap_int_value) -> APInt {
          const int64_t int_value = ap_int_value.getSExtValue();
    
          const float real = (int_value - zp) * scale;
    
          auto real_int = absl::bit_cast<int32_t>(real);
          return APInt(/*numBits=*/32, real_int);
        };
    
        auto dequant_values =
            mlir::cast<DenseIntOrFPElementsAttr>(input_values)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ExpressionTypeProvider.kt

                    }
                }
    
                is KtBinaryExpressionWithTypeRHS -> {
                    val typeReference = parentExpression.right
                    if (KtPsiUtil.isCast(parentExpression) && typeReference != null) {
                        val bindingContext = analysisContext.analyze(typeReference)
                        var kotlinType = bindingContext[BindingContext.TYPE, typeReference]
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

                        DenseIntElementsAttr& shape) {
      Type type = val_bcast.getType();
      Type elem_type = getElementTypeOrSelf(type);
      // Xla's all_reduce legalizer bitcasts to 32 bits, so only
      // element types size <= 4 bytes are supported.
      if (elem_type.isBF16() || elem_type.isF16() || elem_type.isTF32() ||
          elem_type.isF32()) {
        zero = builder.getFloatAttr(elem_type, 0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  10. hack/tools/go.mod

    	github.com/fsnotify/fsnotify v1.5.4 // indirect
    	github.com/fzipp/gocyclo v0.6.0 // indirect
    	github.com/ghostiam/protogetter v0.3.4 // indirect
    	github.com/go-critic/go-critic v0.11.1 // indirect
    	github.com/go-toolsmith/astcast v1.1.0 // indirect
    	github.com/go-toolsmith/astcopy v1.1.0 // indirect
    	github.com/go-toolsmith/astequal v1.2.0 // indirect
    	github.com/go-toolsmith/astfmt v1.1.0 // indirect
    	github.com/go-toolsmith/astp v1.1.0 // indirect
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top