- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 20 for TopK (0.06 sec)
-
tensorflow/compiler/aot/tests/tfcompile_test.cc
EXPECT_NEAR(expected[1], fn.result0(0, 1), 1e4); EXPECT_NEAR(expected[2], fn.result0(1, 0), 1e4); EXPECT_NEAR(expected[3], fn.result0(1, 1), 1e4); } TEST(TFCompileTest, TopK) { Eigen::ThreadPool tp(1); Eigen::ThreadPoolDevice device(&tp, tp.NumThreads()); TopKComp fn; fn.set_thread_pool(&device); // x = [4, 1, 4, 4, 3] fn.arg0(0) = 4; fn.arg0(1) = 1;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 26.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Ordering.java
} list.trimToSize(); return Collections.unmodifiableList(list); } else { TopKSelector<E> selector = TopKSelector.least(k, this); selector.offerAll(iterator); return selector.topK(); } } /** * Returns the {@code k} greatest elements of the given iterable according to this ordering, in * order from greatest to least. If there are fewer than {@code k} elements present, all will be
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 28 18:11:09 UTC 2024 - 39.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Ordering.java
} list.trimToSize(); return Collections.unmodifiableList(list); } else { TopKSelector<E> selector = TopKSelector.least(k, this); selector.offerAll(iterator); return selector.topK(); } } /** * Returns the {@code k} greatest elements of the given iterable according to this ordering, in * order from greatest to least. If there are fewer than {@code k} elements present, all will be
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 28 18:11:09 UTC 2024 - 39.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/ops.mlir
} // ----- // CHECK-LABEL: topk func.func @topk(%arg0: tensor<8xf32>, %arg1: tensor<i32>) -> (tensor<?xf32>, tensor<?xi32>) { %0, %1 = "tfl.topk_v2"(%arg0, %arg1) : (tensor<8xf32>, tensor<i32>) -> (tensor<?xf32>, tensor<?xi32>) func.return %0, %1: tensor<?xf32>, tensor<?xi32> } // ----- // CHECK-LABEL: topk
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 189.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py
def multiple_output_ops( self, input_tensor: core.Tensor ) -> Mapping[str, core.Tensor]: k = array_ops.constant(4, dtype=dtypes.int32) values, indices = nn_ops.top_k(input_tensor, k, name='TopK') adj_values = values + 2 return {'indices': indices, 'adj_values': adj_values, 'values': values} @def_function.function( input_signature=[ tensor_spec.TensorSpec(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 235.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir
// CHECK-LABEL:sin // CHECK: "tfl.sin"(%arg0) : (tensor<f32>) -> tensor<f32> } func.func @topk(%arg0: tensor<8xf32>, %arg1: tensor<i32>) -> (tensor<?xf32>, tensor<?xi32>) { %0, %1 = "tf.TopKV2"(%arg0, %arg1) : (tensor<8xf32>, tensor<i32>) -> (tensor<?xf32>, tensor<?xi32>) func.return %0, %1: tensor<?xf32>, tensor<?xi32> // CHECK-LABEL: topk // CHECK: "tfl.topk_v2"(%arg0, %arg1) // CHECK: return }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 05 01:54:33 UTC 2024 - 153.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
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/lite/stablehlo/transforms/legalize_hlo.cc
return false; } return return_op.getOperands().front() == compare_op.getResult(); } // In general, we convert the following form of sort to tf.TopK: // // %result = "mhlo.sort" (%keys, %indices) ({ // ^bb0(%key_0, %key_1, %index_0, %index_1): // %1 = "mhlo.compare"(%key_0, %key_1) {mhlo::ComparisonDirection::GT} // -> tensor<i1> // }), //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td
This outputs a `batch_size` bool array, an entry `out[i]` is `true` if the prediction for the target class is among the top `k` predictions among all predictions for example `i`. Note that the behavior of `InTopK` differs from the `TopK` op in its handling of ties; if multiple classes have the same prediction value and straddle the top-`k` boundary, all of those classes are considered to be in the top `k`. More formally, let
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 23:24:08 UTC 2024 - 793K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.td
TFL_OperandHasRankAtLeast<0, 1>, TFL_OperandHasRank<1, 0>, PredOpTrait<"result and input element type match", TFL_TCresVTEtIsSameAsOp<0,0>>, SameOperandsAndResultsScale]> { let summary = "TopK operator"; let description = [{ Returns the top `k` largest element along each last dimensional slice of `input` and the indices of values within the last dimension of the input tensor.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 186K bytes - Viewed (0)