- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for MatchPattern (0.35 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
rhs_dilation_attr, feature_group_count_attr; 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(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
DenseIntElementsAttr indices; 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)))
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
if (input_ty.hasStaticShape() && 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) -
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) -
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());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0) -
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) -
src/cmd/go/internal/load/pkg.go
pkg.Incomplete = true } } matchers := make([]func(string) bool, len(patterns)) for i, p := range patterns { if strings.Contains(p, "...") { matchers[i] = pkgpattern.MatchPattern(p) } } return pkgs, nil } // EnsureImport ensures that package p imports the named package. func EnsureImport(p *Package, pkg string) { for _, d := range p.Internal.Imports {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0)