- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for setResultAttr (0.15 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc
func_op.setArgAttr(i, kTFDeviceAttr, StringAttr::get(context, metadata.input_devices[i])); } for (int i : llvm::seq<int>(0, metadata.result_devices.size())) { func_op.setResultAttr( i, kTFDeviceAttr, StringAttr::get(context, metadata.result_devices[i])); } func_op->setAttr(kHostAttr, StringAttr::get(context, host)); func_op.setPublic();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 13.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc
ArrayAttr::get(context, {StringAttr::get(context, input_names[i])})); } const int num_results = main_func.getNumResults(); for (int i = 0; i < num_results; ++i) { main_func.setResultAttr( i, kTfSavedModelIndexPathAttr, ArrayAttr::get(context, {StringAttr::get(context, output_names[i])})); } // Creates PartitionedCall ops to call exported functions.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc
function.setType(builder.getFunctionType(argument_types, result_types)); // Add resource_name attribute to the output for the resources. for (auto& resource : output_only_resources) function.setResultAttr(resource.first, kResourceNameArgAttr, builder.getStringAttr(resource.second)); // Add aliasing_output attribute to the input argument for the resources that // are updated by the function.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc
OpOperand& retval = std::get<1>(sharding_and_retval); const auto& sharding_or_op = std::get<0>(sharding_and_retval); if (auto sharding = GetShardingStringFromVariant(sharding_or_op)) { func.setResultAttr(retval.getOperandNumber(), kShardingAttr, builder->getStringAttr(*sharding)); } } // Update input/output sharding attributes on tf_device.cluster_func op.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 02:01:13 UTC 2024 - 28.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
std::string dialect_attribute = "tf." + key; if (is_arg) { arg_attrs[index].set(dialect_attribute, converted_attr); } else { func.setResultAttr(index, dialect_attribute, converted_attr); ret_attrs[index].set(dialect_attribute, converted_attr); } } return absl::OkStatus(); }; auto* bb = &func.front();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
output_names, seen_indices); if (arg_index == -1) { func->emitWarning("Invalid signature tensors specified."); return; } func.setResultAttr(arg_index, kTfSavedModelIndexPathAttr, mlir::ArrayAttr::get( context, {mlir::StringAttr::get( context, output_pair.value()->name)}));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 66.8K bytes - Viewed (0)