- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for try_emplace (0.36 sec)
-
tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc
assert(id_attr && "tf.resource_arg_unique_id attribute should exist on either " "none or all arguments."); auto emplace_res = attr_id_to_internal_id.try_emplace( id_attr.getInt(), next_unique_instance_id); AddValueUniqueIDMapping(arg, emplace_res.first->getSecond()); // Only increment ID if it has been used.
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/analysis/side_effect_analysis.cc
for (const auto& [resource, _] : per_resource_access_info_) { absl::flat_hash_set<Operation*> last_writes = GetLastWrites(resource); auto& resource_to_operations = stack_up_.back(); resource_to_operations.try_emplace(resource); resource_to_operations[resource].insert( last_writes.begin(), last_writes.end()); } per_resource_access_info_.clear(); } void SideEffectAnalysisInfo::Down() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 41.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc
for (Value value : values) Insert(value, constraint); } std::pair<ValueConstraint, bool> ValuesConstraintSet::Insert( Value value, ValueConstraint constraint) { auto emplaced = constraints_.try_emplace(value, constraint); ValueConstraint persisted = emplaced.first->getSecond(); // We've just inserted a new constraint for the value. if (emplaced.second) return {persisted, true};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 27.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc
return *additional_operation_hooks; } void TensorFlowDialect::RegisterAdditionalOperationHook( TypeID id, AdditionalOpFunction fn) { GetAdditionalOperationHooks().try_emplace(id, std::move(fn)); } TensorFlowDialect::ConstantFoldHook TensorFlowDialect::constant_fold_hook_; TensorFlowDialect::TensorFlowDialect(MLIRContext *context)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc
DenseMap<QuantizationDriver::OpWithResultIndex, QuantizationDriver::QuantStateIndex>& result_states) { const auto [cached, inserted] = value_to_state.try_emplace(value, 0); if (!inserted) { if (as_result) { result_states[{op, index}] = cached->second; } else { operand_states[{op, index}] = cached->second; } return; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 38.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc
return metadata_op.emitError() << kBadReplicateInfoAttrMsg; // Remove `name` attribute. attrs.erase(StringAttr::get(metadata_op.getContext(), kNameAttr)); auto it = metadata_map->try_emplace(replication_info_attr_str.getValue(), std::move(attrs)); // There are multiple TPUReplicateMetadata ops with the same // `_replication_info` attribute.
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/transforms/executor_island_coarsening.cc
// as we are taking the address of the islands here and the push_back step // above may invalidate previously inserted islands mid-loop. for (MergedIsland& island : merged_islands_) island_to_merged_island_.try_emplace(island.insert_point, &island); // This functor merges the given `old_merged_island` into the // `new_merged_island`. `merge_in_front` is whether the old island should be
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc
const llvm::SmallDenseMap<Value, Value>& data_var_to_size_var, llvm::StringMap<PartitionedCallStackOpsInfo>* decomposed_partitioned_call_callees) { auto emplace_res = decomposed_partitioned_call_callees->try_emplace( callee.getName(), PartitionedCallStackOpsInfo()); auto& info = emplace_res.first->second; // Recreate the call op with info. auto recreate_caller = [&] {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc
// Unsupported character in the equation. return std::nullopt; } if (map.count(equation[i])) { // Duplicate character in the equation. return std::nullopt; } map.try_emplace(equation[i], i); } return map; } std::optional<llvm::SetVector<char>> GetAvailableLabels( llvm::StringRef lhs, llvm::StringRef rhs, int* lhs_named_label_count, int* rhs_named_label_count) {
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/tensorflow/transforms/tensor_list_ops_decomposition.cc
llvm::SmallDenseMap<Value, SizeInfo>* buffer_to_size, llvm::StringMap<PartitionedCallDecompositionInfo>* decomposed_partitioned_call_callees) { auto emplace_res = decomposed_partitioned_call_callees->try_emplace( callee.getName(), PartitionedCallDecompositionInfo()); auto& info = emplace_res.first->second; // Recreates the call op with info. auto recreate_caller = [&] {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.2K bytes - Viewed (0)