- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for make_range (0.15 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc
end->getBlock() == block && "ops must be in the same block"); // Track the ops that still need to be scheduled in a set. SmallPtrSet<Operation*, 16> unscheduled_ops; for (Operation& op : llvm::make_range(begin, end)) unscheduled_ops.insert(&op); Block::iterator last_scheduled_op = begin; while (!unscheduled_ops.empty()) { bool scheduled_at_least_once = false;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 27.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/partitioned_topological_sort.cc
// which the next schedulable operations belongs. std::optional<bool> this_partition; for (Operation &unscheduled_op : llvm::make_early_inc_range( llvm::make_range(next_unscheduled_op, end))) { const int op_partition = unscheduled_ops.lookup(&unscheduled_op); if (!this_partition) { this_partition = op_partition; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 15:05:28 UTC 2023 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc
// candidates based on resource modifications. llvm::SmallDenseSet<int64_t> resource_ids; bool previous_unknown_resource_access = false; for (Operation& op : llvm::reverse(llvm::make_range( first_read->getIterator(), execute_parent->getIterator()))) { if (auto read_op = llvm::dyn_cast<TF::ReadVariableOp>(&op)) { VLOG(2) << "Processing read op " << debugString(op); auto info_it =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 29 17:52:11 UTC 2024 - 27K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc
// cluster op (`cluster_predecessor_ops`). auto rfront = Block::reverse_iterator(cluster_ops.front()); auto rback = Block::reverse_iterator(cluster_ops.back()); for (Operation& op : llvm::make_range(rback, rfront)) { if (cluster_ops.contains(&op)) continue; bool has_dependency_to_cluster = getOpClusterDataDependency(&op, /*incoming=*/false, cluster_ops,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 22:03:30 UTC 2024 - 39.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc
// Check that all system devices are part of the same job. const auto& job = system_devices[0].job; auto replica = system_devices[0].replica; for (const auto& device : llvm::make_range(std::next(system_devices.begin()), system_devices.end())) { if (device.job != job) return MismatchedTPUSystemAttributeErr("job", job, device.job);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 10 20:10:40 UTC 2024 - 32.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc
output_arg.ShortDebugString()); } if (output_arg.is_ref()) { // For all types that were added by this function call, make them refs. for (Type& type : llvm::make_range(&state_->types[original_size], state_->types.end())) { Type output_type; TF_RETURN_IF_ERROR(AddRef(type, &output_type)); type = output_type; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc
// after SCC2, i.e., the graph is traversed bottom up just the way we want. auto scc_begin = llvm::scc_begin(&call_graph); auto scc_end = llvm::scc_end(&call_graph); for (auto& scc : make_range(scc_begin, scc_end)) { // Each SCC node is a collection of callgraph nodes that form a cycle. We // will visit these nodes in an arbitrary order. If a node being visited
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 28.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/lower_quantized.mlir
%0 = "tf.Dequantize"(%arg0, %min_range, %max_range) : (tensor<2x3x!tf_type.qint8>, tensor<f32>, tensor<f32>) -> tensor<2x3xf32> // CHECK-DAG: return %[[RESULT]] func.return %0 : tensor<2x3xf32> } // CHECK-LABEL: dequantize_quint8 func.func @dequantize_quint8(%arg0: tensor<2x3x!tf_type.quint8>, %min_range: tensor<f32>, %max_range: tensor<f32>) -> tensor<2x3xf32> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
if (auto* op = producer.dyn_cast<Operation*>()) os << "op " << op->getName(); if (auto ba = producer.dyn_cast<BlockArgument>()) os << "block_arg " << ba.getArgNumber(); os << formatv(" [{0}]", llvm::make_range(port.begin(), port.end())); return os; } bool IsValid() const { return !producer.isNull(); } }; struct ValuePortHasher { std::size_t operator()(const ValuePort& other) const {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_operator.h
inline std::vector<bool> GetVector(DenseElementsAttr elements) { auto type = elements.getType(); auto elemType = type.getElementType(); if (elemType.isSignlessInteger(1)) { auto vec = llvm::to_vector( llvm::map_range(elements.getValues<bool>(), [&](bool value) -> uint8_t { return value ? 1 : 0; })); return std::vector<bool>(vec.begin(), vec.end()); } return std::vector<bool>(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 21:00:09 UTC 2024 - 11.2K bytes - Viewed (0)