- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 832 for Auto (0.06 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/freeze_saved_model_assets.cc
init_table_from_text_file_ops_to_erase; auto asset = LookupBoundInputOfType<AssetOp>(func, i, symbol_table); if (!asset) continue; auto arg = func.getArgument(i); bool arg_is_deletable = true; for (auto user : arg.getUsers()) { if (auto read_op = llvm::dyn_cast<TF::InitializeTableFromTextFileV2Op>(user)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jan 30 01:12:09 UTC 2023 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.cc
DenseElementsAttr constant; if (auto rhs = bmm_op.getY(); !matchPattern(rhs, m_Constant(&constant))) { // The constant may be preceded by QDQs in models with QDQ format, so we // should set it to the real constant. auto dq = dyn_cast_or_null<DequantizeOp>(rhs.getDefiningOp()); if (!dq) return failure(); auto q = dyn_cast_or_null<QuantizeOp>(dq.getInput().getDefiningOp());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/device_util.cc
mlir::TF::RuntimeDevices* devices) { auto devices_attr = op->getAttr(kDevicesAttr); if (!devices_attr) return mlir::success(); if (auto array_attr = mlir::dyn_cast<mlir::ArrayAttr>(devices_attr)) { return GetDevicesFromOp(op, array_attr, devices); } else if (auto dict_attr = mlir::dyn_cast<mlir::DictionaryAttr>(devices_attr)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc
DeviceSet device_set; for (auto& device : devices) device_set.AddDevice(device.get()); AddDevicesToOp(*module_ref, &device_set); auto devices_attr = (*module_ref)->getAttrOfType<mlir::DictionaryAttr>("tf.devices"); ASSERT_NE(devices_attr, nullptr); ASSERT_EQ(devices_attr.size(), 3); // CPU device added with an empty metadata.
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
} std::string tfr_raw_text; for (const auto& file : files) { string fullpath = io::JoinPath(composite_mlir_dir, file); if (env->MatchPath(fullpath, io::JoinPath(composite_mlir_dir, "*.mlir"))) { std::string text; TF_RETURN_IF_ERROR(ReadFileToString(env, fullpath, &text)); tfr_raw_text.append(text); } } auto ctx = TFRDecomposeContext::GetFromText(tfr_raw_text, mlir_ctx);
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/lite/experimental/tac/execution_metadata_exporter.cc
flatbuffers::FlatBufferBuilder* builder, std::map<std::string, uint8_t>* hardware_names) { uint8_t index = 0; for (auto& func : *funcs) { func.walk([&hardware_names, &index](mlir::Operation* op) { auto device_name = GetDeviceName(op); if (!device_name.has_value()) return; auto iter = hardware_names->find(*device_name); if (iter == hardware_names->end()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 06:11:34 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc
Region& region) { auto parallel_group_attr = launch->getAttrOfType<StringAttr>(TF::kParallelExecAnnotation); auto result = region.walk([&](Operation* op) -> WalkResult { if (op->getDialect() != tf_dialect) return WalkResult::advance(); if (parallel_group_attr) { op->setAttr(TF::kParallelExecAnnotation, parallel_group_attr); } auto device_attr = op->getAttr(kDeviceAttr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/eval_util.cc
return mlir::failure(); } TF_Status* status = TF_NewStatus(); auto clean_status = MakeCleanup([status] { TF_DeleteStatus(status); }); // Builds TF operation and sets all the attributes. std::string node_name = "unnamed"; if (auto attr = inst->getAttrOfType<mlir::StringAttr>("name")) { node_name = std::string(attr.getValue()); } auto node_def_or = ConvertTFDialectOpToNodeDef(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 13 06:02:14 UTC 2023 - 5.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_reorder_replicate_and_partitioned_inputs.cc
const auto metadata_iter = replicated_input->getBlock()->getOps<TF::TPUReplicateMetadataOp>(); TF::TPUReplicateMetadataOp metadata; if (!metadata_iter.empty()) metadata = *(metadata_iter.begin()); auto first_partitioned_input = llvm::cast<TF::TPUPartitionedInputV2Op>( replicated_input.getOperand(0).getDefiningOp()); auto partition_dims = first_partitioned_input.getPartitionDims();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 24 23:08:55 UTC 2023 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc
if (seen.contains(v)) { return failure(); // infinite loop } seen.insert(v); if (auto blockArg = mlir::dyn_cast<BlockArgument>(v)) { Operation *op = blockArg.getOwner()->getParentOp(); // If we're in the first block, then the argument to that block is the // one we're looking for. if (auto func = cast<func::FuncOp>(op)) { if (blockArg.getOwner()->isEntryBlock()) { *out = blockArg;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.6K bytes - Viewed (0)