- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for setArgAttr (0.13 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc
argument_indices_to_remove.push_back(index); } else { if (is_var_handle) { // Add resource_name attribute to VarHandleOp read. function.setArgAttr( new_argument_index, kResourceNameArgAttr, builder.getStringAttr( var_handle_shared_names[index - var_handles_start_idx])); } ++new_argument_index; }
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/tensorflow/transforms/annotate_parameter_replication.cc
} } else if (!operand.getParentRegion()->isProperAncestor( &replicate.getBody())) { // Not a replication-invariant operand. continue; } func.setArgAttr(entry.index(), kReplicationAttr, builder.getBoolAttr(true)); } }); } } // namespace std::unique_ptr<OperationPass<ModuleOp>> CreateAnnotateParameterReplicationPass() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc
/*sym_name=*/ builder.getStringAttr("__tf_saved_model_variables"), // Val unimportant. /*filename=*/ builder.getStringAttr(checkpoint_path)); // Marks the input to be inlined. main_func.setArgAttr( 0, "tf_saved_model.bound_input", SymbolRefAttr::get(builder.getContext(), asset_op.getName())); // Bound arguments are expected to be of type tensor<!tf_type.string>, not // tensor<x!tf_type.string>.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/mark_input_output_aliases.cc
alias_info.input_index, kAliasingAttr); // Set only if aliasing attribute does not exist. if (!aliasing_attr) { device_func.setArgAttr( alias_info.input_index, kAliasingAttr, builder.getI64IntegerAttr(alias_info.output_index)); continue; } // If aliasing attribute already exists, it must match the new value.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 04:14:26 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc
auto flat_symbol_ref_attr = FlatSymbolRefAttr::get(context, resource_name); // Add the corresponding `tf_saved_model.bound_input` attribute. func.setArgAttr(i, kSavedModelArgAttr, flat_symbol_ref_attr); resource_names.insert(flat_symbol_ref_attr.getValue()); // Remove the existing `tf.resource_name` attribute. func.removeArgAttr(i, resource_name_id);
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/quantization/tensorflow/passes/merge_save_function_ops_to_main.cc
builder.getFunctionType(input_types, main_func_op.getResultTypes())); // Add "__tf_file_prefix" to the "tf_saved_model.index_path" attribute for the // newly created argument. main_func_op.setArgAttr(new_file_prefix_arg.getArgNumber(), /*name=*/kTfSavedModelIndexPathAttr, /*value=*/builder.getStrArrayAttr({kTfFilePrefix}));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_device_inference.cc
if (device_attr.empty()) { // If device_attr does not exist, try to construct it from any recorded // assignment. if (auto device = result->DeviceForResource(arg)) { func_op.setArgAttr(arg.getArgNumber(), kFuncDeviceAttr, builder.getStringAttr(*device)); } continue; } // Record the attribute.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 03 03:47:00 UTC 2023 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc
// Sets the device attribute for every input and every result of the // function. for (int i : llvm::seq<int>(0, metadata.input_devices.size())) { 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(
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
<< ", got: " << main_func.getNumResults(); return false; } const int num_args = main_func.getNumArguments(); for (int i = 0; i < num_args; ++i) { main_func.setArgAttr( i, kTfSavedModelIndexPathAttr, ArrayAttr::get(context, {StringAttr::get(context, input_names[i])})); } const int num_results = main_func.getNumResults();
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/tf2xla/internal/passes/tpu_sharding_identification_pass.cc
BlockArgument arg = std::get<1>(sharding_and_arg); const auto& sharding_or_op = std::get<0>(sharding_and_arg); if (auto sharding = GetShardingStringFromVariant(sharding_or_op)) { func.setArgAttr(arg.getArgNumber(), kShardingAttr, builder->getStringAttr(*sharding)); } } Operation* terminator = function_block.getTerminator(); for (auto sharding_and_retval :
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 02:01:13 UTC 2024 - 28.9K bytes - Viewed (0)