- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 145 for constCnt (0.14 sec)
-
src/go/types/expr.go
case constant.Float: i := constant.ToInt(x) if i.Kind() != constant.Int { v, _ := constant.Float64Val(x) return v } x = i fallthrough case constant.Int: if v, ok := constant.Int64Val(x); ok { return v } if v, ok := constant.Uint64Val(x); ok { return v } case constant.String: return constant.StringVal(x) case constant.Bool:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 49.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/prepare-tf.mlir
// CHECK-LABEL: conv // CHECK-DAG: %[[CONSTANT:.*]] = arith.constant dense<0.000000e+00> : tensor<16xf32> // CHECK-DAG: %[[CONSTANT0:.*]] = arith.constant dense<[3, 0, 1, 2]> : tensor<4xi32> // CHECK-DAG: %[[CONSTANT1:.*]] = arith.constant dense<[{{\[}}0, 0], [1, 1], [1, 1], [0, 0]]> : tensor<4x2xi32> // CHECK: %0 = "tf.Transpose"(%arg1, %[[CONSTANT0]]) : (tensor<3x3x3x16xf32>, tensor<4xi32>) -> tensor<16x3x3x3xf32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 29 07:26:59 UTC 2024 - 59.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td
(HasOneUse $input_neg_out)]>; // The constant folding in this pass might produce constant in the tf dialect. // This rule is to legalize these constant to the tfl dialect. def LegalizeConstOp : Pat< (TF_ConstOp ElementsAttr:$value), (TFL_ConstOp $value)>; // Reorders adds to allow constant folding. // Add --> Add $input, $constantA // \--> $constantB // To // Add --> $input
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 20:31:41 UTC 2024 - 66.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/lift_quantizable_spots_as_functions.mlir
func.func @dot_general_with_bias_same_shape_and_relu6_fn(%arg0: tensor<1x1x167xf32>) -> tensor<1x1x64xf32> { %0 = stablehlo.constant dense<2.000000e+00> : tensor<167x64xf32> %1 = stablehlo.constant dense<2.000000e+00> : tensor<1x1x64xf32> %2 = stablehlo.constant dense<0.000000e+00> : tensor<1x1x64xf32> %3 = stablehlo.constant dense<6.000000e+00> : tensor<1x1x64xf32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 49.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/prepare-quantize.mlir
%cst = arith.constant dense<25.4> : tensor<2x3xf32> func.return %cst : tensor<2x3xf32> // CHECK-NEXT: %[[cst:.*]] = arith.constant dense<2.540000e+01> : tensor<2x3xf32> // CHECK-NEXT: "tfl.quantize"(%[[cst]]) <{qtype = tensor<2x3x!quant.uniform<u8:f32, 0.099607841641295186>>}> {volatile} } // CHECK-LABEL: QuantizePositiveScalar func.func @QuantizePositiveScalar() -> tensor<f32> { %cst = arith.constant dense<2.54> : tensor<f32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 67.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/expr.go
case constant.Float: i := constant.ToInt(x) if i.Kind() != constant.Int { v, _ := constant.Float64Val(x) return v } x = i fallthrough case constant.Int: if v, ok := constant.Int64Val(x); ok { return v } if v, ok := constant.Uint64Val(x); ok { return v } case constant.String: return constant.StringVal(x) case constant.Bool:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/quantize_composite_functions.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 05:56:10 UTC 2024 - 91.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/python/tfr_gen.py
'to _ATTRIBUTE_RENAMES.') if cst_ty == TFRTypes.ATTR: self._emit_with_loc('\n{} = tfr.constant {} -> {}'.format( name, cst_val, cst_ty)) elif cst_ty == TFRTypes.I1: self._emit_with_loc('\n{} = arith.constant {}'.format(name, cst_val)) else: self._emit_with_loc('\n{} = arith.constant {} : {}'.format( name, cst_val, cst_ty)) return name, cst_ty
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 27 15:27:03 UTC 2022 - 55.8K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/S390X.rules
// Shifts by zero (may be inserted during multiplication strength reduction). ((SLD|SLW|SRD|SRW|SRAD|SRAW)const x [0]) => x // Convert constant subtracts to constant adds. (SUBconst [c] x) && c != -(1<<31) => (ADDconst [-c] x) (SUBWconst [c] x) => (ADDWconst [-int32(c)] x) // generic constant folding // TODO: more of this (ADDconst [c] (MOVDconst [d])) => (MOVDconst [int64(c)+d])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 18:09:26 UTC 2023 - 74.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc
// %1 = // Input tensor r2. // %2 = stablehlo.constant // Input 1 inverse scale 1 / s1. // %3 = stablehlo.constant // Input 1 zero point z1 (i8). // %4 = stablehlo.constant // Input 1 zero point z1 (i32). // %5 = stablehlo.constant // Input 2 inverse scale 1 / s2. // %6 = stablehlo.constant // Input 2 zero point z2 (i8). // %7 = stablehlo.constant // Input 2 zero point z2 (i32).
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 64.6K bytes - Viewed (0)