- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 164 for pushBack (0.24 sec)
-
tensorflow/cc/saved_model/loader_util.cc
// collection, so read from metagraph first. if (meta_graph_def.asset_file_def_size() > 0) { for (const auto& asset : meta_graph_def.asset_file_def()) { asset_file_defs->push_back(asset); } return absl::OkStatus(); } // Fall back to read from collection to be backward compatible with v1. const auto& collection_def_map = meta_graph_def.collection_def();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Feb 10 10:25:28 UTC 2024 - 3.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/tac_filter.cc
if (!func_regex.match(func.getName())) { continue; } ApplyFunctionTacFilter(func, tac_filter.function_filter().filter_type(), builder); filtered_ops.push_back(func); } return; } llvm::Regex op_regex(tac_filter.op_filter().op_name_pattern()); module.walk([&](Operation* op) { auto named_loc = mlir::dyn_cast<NameLoc>(op->getLoc());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.cc
Value new_word = rewriter.create<CastOp>(loc, word_type, new_word_u64); pack_args.push_back(new_word); Value overflow = rewriter.create<LessOp>(loc, new_word_u64, word_u64); increment = rewriter.create<SelectV2Op>(loc, overflow, one_u64, zero_u64); } // Save the new state value to the resource. pack_args.push_back(key); Value new_state = rewriter.create<PackOp>(loc, res_type, pack_args);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_identity_pruning.cc
auto func = dyn_cast_or_null<func::FuncOp>(call_op.resolveCallable()); if (func && reachable_funcs.insert(func).second) funcs_to_visit.push_back(func); }); }; SmallVector<func::FuncOp, 4> funcs_to_visit; collect_reachable_funcs(region, funcs_to_visit); while (!funcs_to_visit.empty()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc
// Read all resource variables from the session. std::vector<std::string> variable_names; variable_names.reserve(resource_names.size()); for (StringRef name : resource_names) variable_names.push_back(name.str()); std::vector<Tensor> resource_tensors; Status status = session->Run( /*inputs=*/{}, variable_names, /*target_tensor_names=*/{}, &resource_tensors); if (!status.ok()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc
builder.setInsertionPointAfter(*old_launch_op); llvm::SmallVector<Type, 4> new_launch_op_results_types; for (Value result : new_launch_op_results) new_launch_op_results_types.push_back(result.getType()); auto new_launch_op = builder.create<tf_device::LaunchOp>( old_launch_op->getLoc(), old_launch_op->getDeviceAttr(), /*result_types=*/new_launch_op_results_types);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/raise_custom_ops.cc
custom_ops.push_back(op); } }); for (auto *op : custom_ops) { builder.setInsertionPoint(op); Location loc = op->getLoc(); auto custom_op = builder.create<CustomTfOp>(loc, op->getResultTypes(), op->getOperands()); Region region; Block *new_block = new Block; region.push_back(new_block);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/jit/device_util_test.cc
device_info_cache.GetIdFor(device_name)); device_set.Insert(device_id); expected_devices.push_back(device_name); } device_set.ForEach([&](jit::DeviceId device_id) { actual_devices.push_back(string(device_info_cache.GetNameFor(device_id))); return true; }); EXPECT_EQ(expected_devices, actual_devices); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util_test.cc
cluster_func_ops.push_back(cluster_func); }); EXPECT_EQ(cluster_func_ops.size(), 1); EXPECT_TRUE(mlir::succeeded(tensorflow::EraseClusterFuncs(cluster_func_ops))); llvm::SmallVector<mlir::tf_device::ClusterFuncOp, 4> new_cluster_func_ops; module->walk([&](mlir::tf_device::ClusterFuncOp cluster_func) { new_cluster_func_ops.push_back(cluster_func); });
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_cpu_device.cc
VLOG(1) << "Not creating XLA devices, tf_xla_enable_xla_devices not set " "and XLA device creation not requested"; return absl::OkStatus(); } devices->push_back(absl::StrCat("/physical_device:", DEVICE_XLA_CPU, ":0")); return absl::OkStatus(); } Status XlaCpuDeviceFactory::CreateDevices( const SessionOptions& session_options, const string& name_prefix,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 5.5K bytes - Viewed (0)