- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 192 for pushBack (0.16 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.cc
SmallVector<int64_t, 8> perm0_values; for (const auto &value : perm0.getValues<APInt>()) perm0_values.push_back(value.getSExtValue()); SmallVector<int64_t, 8> perm1_values; for (const auto &value : perm1.getValues<APInt>()) perm1_values.push_back(value.getSExtValue()); for (int i = 0; i < perm0_values.size(); ++i) { if (perm0_values[perm1_values[i]] != i) return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc
const std::string gpu1 = "/job:worker/replica:1/task:2/device:GPU:1"; llvm::SmallVector<std::unique_ptr<Device>, 2> devices; devices.push_back(FakeDevice::Make(cpu0)); devices.push_back(FakeDevice::Make(gpu0, "compute capability: 7.0")); devices.push_back(FakeDevice::Make(gpu1)); DeviceSet device_set; for (auto& device : devices) device_set.AddDevice(device.get()); AddDevicesToOp(*module_ref, &device_set);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc
mlir::TensorType mlir_ty = mlir::UnrankedTensorType::get(elt_ty); input_tys.push_back(mlir_ty); } for (auto ty : output_dtys) { mlir::Type elt_ty; TF_RETURN_IF_ERROR(ConvertDataType(ty, builder, &elt_ty)); mlir::TensorType mlir_ty = mlir::UnrankedTensorType::get(elt_ty); output_tys.push_back(mlir_ty); } llvm::SmallVector<mlir::NamedAttribute, 4> attrs;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 29 02:34:43 UTC 2024 - 9.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/visitor.cc
func::FuncOp func, llvm::function_ref<WalkResult(func::FuncOp)> callback, SymbolTableCollection* symbol_table) { llvm::SmallDenseSet<Operation*> visited; llvm::SmallVector<func::FuncOp> stack; stack.push_back(func); while (!stack.empty()) { func::FuncOp f = stack.back(); stack.pop_back(); if (!visited.insert(f).second) { continue; } WalkResult result = callback(f);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 19 03:46:51 UTC 2023 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_functional_to_executor.cc
return; } // Build GraphOp. OpBuilder builder(&body, body.begin()); auto graph_op = builder.create<tf_executor::GraphOp>( loc, func.getFunctionType().getResults()); graph_op.getBody().push_back(new Block); builder.setInsertionPointToEnd(&graph_op.GetBody()); auto island = builder.create<tf_executor::IslandOp>( loc, func.getFunctionType().getResults(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 11 20:52:36 UTC 2023 - 4.1K bytes - Viewed (0) -
tensorflow/cc/ops/while_loop_test.cc
protected: WhileLoopTest() : scope_(Scope::NewRootScope()) {} void Init(int num_inputs, DataType dtype = DT_INT32) { for (int i = 0; i < num_inputs; ++i) { inputs_.push_back(ops::Placeholder(scope_, dtype)); } } void CreateLoop(const ops::CondGraphBuilderFn& cond, const ops::BodyGraphBuilderFn& body, error::Code error_code = error::OK,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 13 22:30:58 UTC 2023 - 6.4K bytes - Viewed (0) -
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)