- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for next_itr (0.26 sec)
-
tensorflow/compiler/jit/xla_cluster_util_test.cc
ops::internal::Enter enter(s.WithOpName("init_value"), init_value, loop_name); ops::Merge merge(s.WithOpName("merge"), {init_value, init_value}); Output next_iteration = ops::NextIteration(s.WithOpName("next_itr"), merge.output); return s.graph()->UpdateEdge(next_iteration.node(), 0, merge.output.node(), 1); } TEST(NodesRelatedToRefVariables, Cycles) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 09:53:30 UTC 2024 - 10.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_op_interfaces.cc
int64_t &next_id) { // Always create a new ID for anonymous handle. if (IsResourceHandleAnonymous(shared_name)) return {resource, next_id++}; ResourceHandle handle(container, shared_name, device, /*op=*/nullptr); auto emplace_res = resource_handle_id_map.try_emplace(handle, next_id); // New ID created, increment next_id. if (emplace_res.second) ++next_id; return {resource, emplace_res.first->second};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Aug 03 15:22:46 UTC 2021 - 1.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/host_runtime/tfrt_ops.cc
namespace mlir { namespace TF { llvm::SmallVector<ResourceHandleValueAndId, 4> _TfrtGetResourceOp::GetResourceHandleValueAndIdList( llvm::SmallDenseMap<ResourceHandle, int64_t> &resource_handle_id_map, int64_t &next_id) { llvm::SmallVector<ResourceHandleValueAndId, 4> resource_vec; llvm::StringRef device = GetDeviceOrEmpty(getOperation()); for (const auto &iter : llvm::enumerate(getResults())) { auto index = iter.index();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics.proto
syntax = "proto3"; package tensorflow.calibrator; option cc_enable_arenas = true; // Calibration algorithm's collecting statistics. // NEXT_ID: 4 message CalibrationStatistics { message MinMaxStatistics { // global minimum of all sample datasets. float global_min = 1; // global maximum of all sample datasets. float global_max = 2; } message AverageMinMaxStatistics {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 16 04:33:52 UTC 2024 - 1.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/test_side_effect_analysis.cc
void runOnFunction(func::FuncOp func, const TF::SideEffectAnalysis::Info& analysis) { int64_t next_id = 0; llvm::SmallDenseMap<Operation*, int64_t, 8> ids; func.walk([&](Operation* op) { ids[op] = next_id++; op->emitRemark("ID: ") << ids[op]; }); auto join_ids = [&](const llvm::ArrayRef<Operation*> ops) { llvm::SmallVector<std::string, 8> id_vec;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 19 00:13:50 UTC 2022 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/test_resource_alias_analysis.cc
} void runOnFunction(func::FuncOp func, const TF::ResourceAliasAnalysis::Info& analysis) { int64_t next_id = 0; llvm::SmallDenseMap<Value, int64_t, 8> ids; auto assign_id = [&](Value value) { if (ids.find(value) == ids.end()) ids.insert({value, next_id++}); }; auto get_id = [&](Value value) -> int64_t { auto it = ids.find(value); assert(it != ids.end());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 19 00:13:50 UTC 2022 - 4.4K bytes - Viewed (0) -
tensorflow/compiler/jit/shape_inference.cc
// directly. auto iter = merge_to_next_iteration.find(n); if (iter != merge_to_next_iteration.end()) { const Node *next_iter = iter->second, *node = next_iter; do { TF_RETURN_IF_ERROR(node->input_node(0, &node)); } while (node->IsIdentity()); const Node* switch_input; bool is_loop_invariant = node->IsSwitch() &&
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 00:41:19 UTC 2024 - 13K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h
llvm::SmallDenseMap<mlir::TF::ResourceHandle, int64_t>& resource_handle_id_map, int64_t& next_id) { llvm::SmallVector<mlir::TF::ResourceHandleValueAndId> resource_vec; for (Value resource : mlir::tf_type::filter_resources(this->getOperation()->getResults())) { resource_vec.push_back({resource, next_id++}); } return resource_vec; } }; } // namespace TF
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_op_interfaces.td
/*methodName=*/"GetResourceHandleValueAndIdList", /*args=*/(ins "llvm::SmallDenseMap<ResourceHandle, int64_t>&":$resource_handle_id_map, "int64_t&":$next_id) >, ]; } def TF_GetResourceInstanceInterface : OpInterface<"GetResourceInstanceInterface"> { let description = [{Returns a string corresponding to the resource instance
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 30 19:07:07 UTC 2022 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_op_interfaces.h
llvm::StringRef container, llvm::StringRef shared_name, llvm::StringRef device, Value resource, llvm::SmallDenseMap<ResourceHandle, int64_t>& resource_handle_id_map, int64_t& next_id); // Shape functions for ops that are using TF_SameOperandsAndResultTypeResolveRef // and have at least one operand, result type can be inferred using the first // operand's type.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 03 19:26:14 UTC 2023 - 6.5K bytes - Viewed (0)