- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for perm_values (0.15 sec)
-
tensorflow/compiler/mlir/lite/utils/utils.h
auto perm_values = perm_values_attr.getValues<APInt>(); size_t idx = 0; for (; idx < perm_values_attr.size() - 2; ++idx) { if (perm_values[idx].getSExtValue() != idx) return false; } return (perm_values[idx].getSExtValue() == perm_values_attr.size() - 1) && (perm_values[idx + 1].getSExtValue() == idx); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc
// Transpose and constant-fold the weight if needed. if (adj_y.getValue()) { SmallVector<int32_t> perm_values(num_batch_dim); absl::c_iota(perm_values, 0); perm_values.push_back(num_batch_dim + 1); perm_values.push_back(num_batch_dim); Value perm = Create1DConstValue<int32_t>(builder, loc, perm_values); auto transpose_op = builder.create<TF::TransposeOp>(loc, weight, perm);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 47.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/push_transpose_through_ewise.cc
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/tensorflow/ir/tf_ops_layout_helper.cc
SmallVector<int64_t, 8> perm0_values; for (const auto &value : perm0.getValues<APInt>()) perm0_values.push_back(value.getSExtValue()); SmallVector<int64_t, 8> perm1_values; for (const auto &value : perm1.getValues<APInt>()) perm1_values.push_back(value.getSExtValue()); for (int i = 0; i < perm0_values.size(); ++i) { if (perm0_values[perm1_values[i]] != i) return false; } return true;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.td
$asymmetric_quantize_inputs_bmm ), [(AreLastTwoDimsTransposed $perm_value), (IsNoneType $bias)]>; // Fuses TFL_FullyConnectedOp and TFL_TransposeOp Rhs to TFL_BatchMatMulOp def FuseTransposeFCRhsToBatchMatmul : Pat< (TFL_FullyConnectedOp 2DTensorOf<[F32]>:$lhs, (TFL_TransposeOp TensorOf<[F32]>:$rhs, (Arith_ConstantOp:$perm_value $p0)), $bias, $TFL_AF_None, $TFL_FCWO_Default,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 09 23:44:09 UTC 2023 - 2.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td
def FuseTransposeIntoBatchMatMulLHS: Pat< (TFL_BatchMatMulOp (TFL_TransposeOp:$transposed_value $input, (Arith_ConstantOp:$perm_value $p0)), $rhs, $adj_x, $adj_y, $asymmetric_quantize_inputs), (TFL_BatchMatMulOp $input, $rhs, ConstBoolAttrTrue, $adj_y, $asymmetric_quantize_inputs), [(AreLastTwoDimsTransposed $perm_value), (IsBoolAttrEqual<"false"> $adj_x)]>; // Fuses TFL_TransposeOp after TFL_BatchMatMulOp into the BMM.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 20:31:41 UTC 2024 - 66.4K bytes - Viewed (0)