Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for Constant2 (0.24 sec)

  1. doc/go1.17_spec.html

    literal.
    </p>
    
    
    <h2 id="Constants">Constants</h2>
    
    <p>There are <i>boolean constants</i>,
    <i>rune constants</i>,
    <i>integer constants</i>,
    <i>floating-point constants</i>, <i>complex constants</i>,
    and <i>string constants</i>. Rune, integer, floating-point,
    and complex constants are
    collectively called <i>numeric constants</i>.
    </p>
    
    <p>
    A constant value is represented by a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/prepare-composite-functions-tf.mlir

    // CHECK-DAG:       [[VAL_92:%.*]] = arith.constant dense<0.000000e+00> : tensor<3xf32>
    // CHECK-DAG:       [[VAL_93:%.*]] = arith.constant dense<0.000000e+00> : tensor<1x3xf32>
    // CHECK-DAG:       [[VAL_94:%.*]] = arith.constant dense<0.000000e+00> : tensor<1x1xf32>
    // CHECK-DAG:       [[VAL_95:%.*]] = arith.constant dense<0> : tensor<1xi64>
    // CHECK-DAG:       [[VAL_96:%.*]] = arith.constant dense<1> : tensor<1xi64>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 122.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/generic.rules

    // Reassociate expressions involving
    // constants such that constants come first,
    // exposing obvious constant-folding opportunities.
    // Reassociate (op (op y C) x) to (op C (op x y)) or similar, where C
    // is constant, which pushes constants to the outside
    // of the expression. At that point, any constant-folding
    // opportunities should be obvious.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

    // CHECK-DAG:       [[VAL_8:%.*]] = arith.constant dense<0.000000e+00> : tensor<16x16xf32>
    // CHECK-DAG:       [[VAL_9:%.*]] = arith.constant dense<0.000000e+00> : tensor<16x8xf32>
    // CHECK-DAG:       [[VAL_10:%.*]] = arith.constant dense<0.000000e+00> : tensor<16xf32>
    // CHECK-DAG:       [[VAL_11:%.*]] = arith.constant dense<0.000000e+00> : tensor<1x16xf32>
    // CHECK-DAG:       [[VAL_12:%.*]] = arith.constant dense<0.000000e+00> : tensor<8x16xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 05 01:54:33 UTC 2024
    - 153.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

    }
    
    // Return true if the value is a splat tensor constant zero.
    bool EqualsZero(Value value) {
      DenseElementsAttr constant;
      if (!matchPattern(value, m_Constant(&constant)) || !constant.isSplat()) {
        return false;
      }
    
      Type element_type = value.getType().cast<ShapedType>().getElementType();
      if (element_type.isa<FloatType>()) {
        return constant.getSplatValue<APFloat>().isZero();
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/tests/uniform-quantized-stablehlo-to-tfl.mlir

    // CHECK-DAG: %[[BROADCAST_DIM:.+]] = arith.constant dense<{{\[3, 2, 1, 1, 4\]}}> : tensor<5xi32>
    // CHECK-DAG: %[[EXPAND_DIM1:.+]] = arith.constant dense<3> : tensor<1xi32>
    // CHECK-DAG: %[[EXPAND_DIM0:.+]] = arith.constant dense<2> : tensor<1xi32>
    // CHECK-DAG: %[[PERM:.+]] = arith.constant dense<{{\[1, 0, 2\]}}> : tensor<3xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 106.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/ops.mlir

      %size_splits_0 = arith.constant dense<[8, 8]> : tensor<2xi32>
      %split_dim_0 = arith.constant dense<0> : tensor<i32>
      %0, %1 = "tfl.split_v"(%arg0, %size_splits_0, %split_dim_0) {num_splits = 2 : i32} : (tensor<16x4xf32>, tensor<2xi32>, tensor<i32>) -> (tensor<8x4xf32>, tensor<8x4xf32>)
    
      %size_splits_1 = arith.constant dense<[2, 2]> : tensor<2xi32>
      %split_dim_1 = arith.constant dense<1> : tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

    //
    // It should be guaranteed that `rhs_op` is either:
    // 1. `stablehlo.constant`
    // 2. `stablehlo.constant`->`stablehlo.transpose`.
    //
    // TODO: b/328156969 - Support the case where the RHS doesn't come from a
    // constant.
    TFL::QConstOp CreateTflConstOpForFilter(Operation* rhs_op,
                                            PatternRewriter& rewriter,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      setNameFn(getResult(), "cst");
    }
    
    OpFoldResult ConstOp::fold(FoldAdaptor adaptor) {
      assert(adaptor.getOperands().empty() && "constant has no operands");
    
      // Return the held attribute value.
      return getValue();
    }
    
    // Builds a constant op with the specified attribute `value`. The result
    // op's type is deduced from `value`; if `value` is of scalar type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

          %add = "tf.Add"(%barg0, %barg0) : (tensor<*xf32>, tensor<*xf32>) -> tensor<*xf32>
          %one = arith.constant dense<1> : tensor<i32>
          %sub = "tf.Sub"(%barg1, %one) : (tensor<i32>, tensor<i32>) -> tensor<i32>
          %dummy0 = arith.constant dense<7> : tensor<i32>
          %dummy1 = arith.constant dense<3.0> : tensor<f32>
          "tf.Yield"(%add, %sub, %dummy0, %dummy1) : (tensor<*xf32>, tensor<i32>, tensor<i32>, tensor<f32>) -> ()
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
Back to top