- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for lhsIndex (0.15 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/meta/restmapper.go
lhsIndex := -1 rhsIndex := -1 for i := range o.sortOrder { if o.sortOrder[i] == lhs.GroupVersion() { lhsIndex = i } if o.sortOrder[i] == rhs.GroupVersion() { rhsIndex = i } } if rhsIndex == -1 { return true } return lhsIndex < rhsIndex } type resourceByPreferredGroupVersion struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 17 01:55:47 UTC 2021 - 16.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.cc
// from PyTorch // %0 = compare{GT}(%lhs_value, %rhs_value) // %1 = select(%0, %lhs_value, %rhs_value) // %2 = compare{EQ}(%lhs_value, %rhs_value) // %3 = minimum(%lhs_index, %rhs_index) // %4 = select(%0, %lhs_index, %rhs_index) // %5 = select(%2, %3, %4) // return %1, %5 LogicalResult MatchReduceToArgMinMaxType2(mhlo::ReduceOp reduce_op, bool is_argmax) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 20:53:17 UTC 2024 - 8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc
dnums.lhs.emplace_back(i); } else { dnums.lhs_out.emplace_back(i, out_index->second); } } for (int64_t i = 0; i < out.size(); ++i) { auto lhs_index = lhs_map.find(out[i]); if (lhs_index == lhs_map.end()) { // out only isn't supported return std::nullopt; } } return dnums; } std::optional<EinsumDimensionNumbers> GetEinsumDimensionNumbers(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
// to use. const int64_t lhs_index = lhs_is_splat ? 0 : GetElementIndex(lhs_new_shape, current_index); const int64_t rhs_index = rhs_is_splat ? 0 : GetElementIndex(rhs_new_shape, current_index); new_values.push_back(calculate(*(lhs_old_values.begin() + lhs_index), *(rhs_old_values.begin() + rhs_index)));
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/tf2xla/transforms/legalize_tf.cc
Value compare_eq = b.create<CompareOp>(lhs_val, rhs_val, ComparisonDirection::EQ); Value min_index = b.create<MinOp>(lhs_index, rhs_index); Value min_val_index = b.create<SelectOp>(index_type, compare_dt, lhs_index, rhs_index); Value selected_index = b.create<SelectOp>(index_type, compare_eq, min_index, min_val_index);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0)