- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 30 for permutation (0.21 sec)
-
tensorflow/compiler/mlir/lite/transforms/push_transpose_through_ewise.cc
PushTransposeThroughEwisePass> { public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(PushTransposeThroughEwisePass) void runOnOperation() override; }; // Compute the permutation that would take `arr` to the identity. llvm::SmallVector<int32_t> InvertPermutation(llvm::SmallVector<int32_t> arr) { llvm::SmallVector<int32_t> inverse_arr(arr.size()); for (int32_t i = 0; i < arr.size(); ++i) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_operator.cc
return; } if (const auto* op = op_union.AsStablehloTransposeOptions()) { if (!op->permutation.empty()) { attributes.emplace_back(builder.getNamedAttr( "permutation", BuildVhloTensorV1Attr({static_cast<int64_t>(op->permutation.size())}, op->permutation, builder))); } return; } if (const auto* op = op_union.AsStablehloRngBitGeneratorOptions()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 38K bytes - Viewed (0) -
src/math/rand/v2/rand.go
// Shuffle really ought not be called with n that doesn't fit in 32 bits. // Not only will it take a very long time, but with 2³¹! possible permutations, // there's no way that any PRNG can have a big enough internal state to // generate even a minuscule percentage of the possible permutations. // Nevertheless, the right API signature accepts an int n, so handle it as best we can. for i := n - 1; i > 0; i-- {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:25:49 UTC 2024 - 12.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/schema/schema.fbs
// ..., dn-1). For example, a 2-D matrix stored in row-major order would // have traversal_order = (d0, d1). // - if block sparse with a k-dimensional block (0 <= k <= n), the // traversal_order has n + k elements. The first n elements are still a // permutation of (d0, ..., dn-1). The lask k elements are a permutation
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 18:01:23 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_patterns.td
def : Pat<(TF_CastOp $arg, ConstBoolAttrFalse), (MHLO_ConvertOp $arg)>; def : Pat<(TF_TransposeOp:$res $arg, (ConstantLikeMatcher ElementsAttr:$permutation)), (MHLO_TransposeOp $arg, (CastElementsToI64Elements $permutation))>; // Lowering these ops with static shape to mhlo.reshape foreach TfOp = [TF_ExpandDimsOp, TF_ReshapeOp, TF_SqueezeOp, ] in {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 06 18:46:23 UTC 2024 - 34.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/schema/schema_v3b.fbs
// ..., dn-1). For example, a 2-D matrix stored in row-major order would // have traversal_order = (d0, d1). // - if block sparse with a k-dimensional block (0 <= k <= n), the // traversal_order has n + k elements. The first n elements are still a // permutation of (d0, ..., dn-1). The lask k elements are a permutation
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 14:28:27 UTC 2024 - 30K bytes - Viewed (0) -
src/math/rand/rand.go
// Shuffle really ought not be called with n that doesn't fit in 32 bits. // Not only will it take a very long time, but with 2³¹! possible permutations, // there's no way that any PRNG can have a big enough internal state to // generate even a minuscule percentage of the possible permutations. // Nevertheless, the right API signature accepts an int n, so handle it as best we can. i := n - 1 for ; i > 1<<31-1-1; i-- {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:09:08 UTC 2024 - 16.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc
TF::TransposeOp GetTransposeOpForConv2DFilter(OpBuilder* builder, Value input) { SmallVector<int32_t, 6> permutation = {0, 2, 1, 3, 4, 5}; auto permute_type = RankedTensorType::get({6}, builder->getIntegerType(32)); auto permute_attr = DenseIntElementsAttr::get(permute_type, permutation); auto permute_value = builder->create<TF::ConstOp>(input.getLoc(), permute_attr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 29.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/tests/tfl_legalize_hlo.mlir
// CHECK-LABEL: main // CHECK: return %arg0 : tensor<5x7xf32> } // - transpose // func.func @transpose_2d(%arg0: tensor<2x3xf32>) -> tensor<3x2xf32> { %0 = "mhlo.transpose"(%arg0) <{permutation = dense<[1, 0]> : tensor<2xi64>}> : (tensor<2x3xf32>) -> tensor<3x2xf32> func.return %0 : tensor<3x2xf32> // CHECK-LABEL: transpose_2d
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 40.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/lstm_utils.cc
Value Transpose(OpBuilder* builder, Value value_to_transpose, SmallVector<int32_t, 4> perm, RankedTensorType original_type, mlir::Location location) { // Create a constant op for transpose permutation. auto perm_op = CreateI32DenseConst(builder, perm, location); // Create tensor type for the transpose result. auto transpose_type = original_type; auto transpose_shape =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 36.2K bytes - Viewed (0)