- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 1,825 for Auto (0.25 sec)
-
tensorflow/compiler/mlir/lite/quantization/numerical_utils_test.cc
} TEST(NumericalUtils, ActivationRange) { // zero point = 0 auto a = CalculateQuantizedRange(1e-6, 0, std::nullopt, std::nullopt, -128, 127); ASSERT_EQ(a.first, -128); ASSERT_EQ(a.second, 127); auto b = CalculateQuantizedRange(1e-6, 0, 0.0, std::nullopt, -128, 127); ASSERT_EQ(b.first, 0); ASSERT_EQ(b.second, 127); auto c = CalculateQuantizedRange(1e-6, 0, -1.0, 1.0, -128, 127);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 08 01:38:03 UTC 2024 - 3.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc
if (!devices.has_value()) { return op->emitOpError() << "devices attribute is not present in 'tf.device.replicate' op"; } auto logical_core_name = tensorflow::GetDeviceAliasForLogicalCore(logical_core); auto tpu_replica = devices.value().get(logical_core_name); if (!tpu_replica) { return op->emitOpError() << "requires device ordinal from device " << logical_core_name
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jul 24 21:01:40 UTC 2023 - 16.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc
llvm::BitVector& erase_indices) { auto terminator = func.front().getTerminator(); int num_operands = terminator->getNumOperands(); erase_indices.resize(num_operands); for (auto arg_index : arguments_to_erase) { auto argument = func.getArgument(arg_index); for (auto& use : argument.getUses()) { if (llvm::isa<func::ReturnOp, TF::YieldOp>(use.getOwner())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 09:56:53 UTC 2024 - 19.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/odml_converter/folders.cc
std::vector<ResultType> res; res.reserve(num_results); auto lhs_start = lhs_vals.begin(); auto rhs_start = rhs_vals.begin(); for (int i = 0; i < num_results; ++i) { auto lhs_val = lhs_splat ? *lhs_start : *(lhs_start++); auto rhs_val = rhs_splat ? *rhs_start : *(rhs_start++); auto signed_lhs_val = AddSign(lhs_val); auto signed_rhs_val = AddSign(rhs_val); if (signed_rhs_val.isZero()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 06:11:55 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental_reader_test.cc
TEST(CAPI, MonitoringCellReader0) { auto counter_name = "test/counter0"; auto* counter = CreateCounter0(counter_name); auto* reader = TFE_MonitoringNewCounterReader(counter_name); IncrementCounter0(counter); int64_t actual = TFE_MonitoringReadCounter0(reader); CHECK_EQ(actual, 1); } TEST(CAPI, MonitoringCellReader1) { auto counter_name = "test/counter1"; auto label_name = "test/label";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 20 03:14:47 UTC 2023 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/jit/device_compiler_test.cc
std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); Scope scope = Scope::NewRootScope().ExitOnError(); auto a = ops::_Arg(scope.WithOpName("A"), DT_INT32, 0); auto b = ops::_Arg(scope.WithOpName("B"), DT_INT32, 1); auto c = ops::Add(scope.WithOpName("C"), a, b); auto d = ops::_Retval(scope.WithOpName("D"), c, 0); TF_RETURN_IF_ERROR(scope.ToGraph(graph.get())); return graph; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 19.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.cc
for (auto& bb : fn) { for (auto& inst : bb) { auto attr_id = mlir::StringAttr::get(context, "value"); if (auto attr = inst.getAttrOfType<mlir::ElementsAttr>(attr_id)) { mlir::Attribute rand_val; mlir::Type element_type = attr.getShapedType().getElementType(); if (mlir::isa<mlir::IntegerType>(element_type)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 11:51:44 UTC 2024 - 14.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
auto tf_matmul_op = cast<TF::MatMulOp>(op); auto lhs = op->getOperand(0); auto rhs = op->getOperand(1); auto transpose = [&](Value input) -> std::pair<LogicalResult, Value> { RankedTensorType type = mlir::dyn_cast_or_null<RankedTensorType>(input.getType()); if (!type || type.getRank() != 2) return {failure(), nullptr}; auto permute_attr = DenseIntElementsAttr::get(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/merge_control_flow.cc
MapToRegionVec2D& merged_groups, MapToOperationVec2D& moved_ops_groups) { auto it_merged = merged_groups.try_emplace(if_cond); auto it_moved = moved_ops_groups.try_emplace(if_cond); llvm::SmallVector<TF::IfRegionOp, 8> sub_merged_groups; auto begin_if_op_iter = if_ops.begin(); while (begin_if_op_iter != if_ops.end()) { auto current_last_if_op_iter =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 25.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc
// Remove the assign ops. for (const auto& entry : var_access_info.per_resource_info) { const auto& info = entry.getSecond(); if (info.assign) info.assign->erase(); } // Remove the read ops if they have no more uses. for (const auto& entry : var_access_info.per_resource_info) { const auto& info = entry.getSecond(); if (info.read->use_empty()) info.read->erase(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 29 17:52:11 UTC 2024 - 27K bytes - Viewed (0)