Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for m_Constant (0.55 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      if (!(matchPattern(op.getWindowStrides(), m_Constant(&window_strides_attr)) &&
            matchPattern(op.getPadding(), m_Constant(&padding_attr)) &&
            matchPattern(op.getLhsDilation(), m_Constant(&lhs_dilation_attr)) &&
            matchPattern(op.getRhsDilation(), m_Constant(&rhs_dilation_attr)) &&
            matchPattern(op.getFeatureGroupCount(),
                         m_Constant(&feature_group_count_attr))))
        return success();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/optimize.cc

        if (!matchPattern(gather_nd_first.getIndices(), m_Constant(&indices)))
          return failure();
        int i = 0;
        for (const auto &axis_int : indices.getValues<APInt>()) {
          const int64_t axis = axis_int.getSExtValue();
          if (axis != i / 2) return failure();
          ++i;
        }
        if (!matchPattern(gather_nd_second.getIndices(), m_Constant(&indices)))
          return failure();
        i = 0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      // Get the tensors.
      DenseElementsAttr input_tensor, weights_tensor, bias_tensor;
      if (!matchPattern(getInput(), m_Constant(&input_tensor)) ||
          !matchPattern(getFilter(), m_Constant(&weights_tensor)) ||
          (has_bias && !matchPattern(getBias(), m_Constant(&bias_tensor)))) {
        return failure();
      }
    
      // Get the tensor types.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

          matchPattern(op.getWindowDimensions(), m_Constant(&window_dimensions)) &&
          matchPattern(op.getWindowStrides(), m_Constant(&window_strides)) &&
          matchPattern(op.getBaseDilations(), m_Constant(&base_dilations)) &&
          matchPattern(op.getWindowDilations(), m_Constant(&window_dilations)) &&
          matchPattern(op.getPadding(), m_Constant(&padding))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

                                SmallVectorImpl<int64_t>& s0_shape,
                                SmallVectorImpl<int64_t>& s1_shape) {
      if (!matchPattern(op.getS0(), m_Constant(&s0))) return false;
      if (!matchPattern(op.getS1(), m_Constant(&s1))) return false;
    
      for (auto s : s0.getValues<APInt>()) s0_shape.push_back(s.getSExtValue());
      for (auto s : s1.getValues<APInt>()) s1_shape.push_back(s.getSExtValue());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

    // `SplatValueType` can be `APInt` or `APFloat`.
    template <typename SplatValueType>
    LogicalResult GetConstantSplatValue(Value value, SplatValueType& splat_value) {
      DenseElementsAttr attr;
      if (!matchPattern(value, m_Constant(&attr)) || !attr.isSplat()) {
        return failure();
      }
    
      splat_value = attr.getSplatValue<SplatValueType>();
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
Back to top