- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 35 for getNamedAttr (0.24 sec)
-
tensorflow/compiler/mlir/lite/python/jax_to_tfl_flatbuffer.cc
} const auto& inputs = absl::StrJoin(input_names, ","); mlir::OpBuilder builder(*module); llvm::SmallVector<mlir::NamedAttribute> attrs; attrs.push_back( builder.getNamedAttr("inputs", builder.getStringAttr(inputs))); // Jax wrapped the output nodes in a tuple, so it's pretty hard to us // to tell the output at this point, we will set the output at the export // phase.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 11 19:29:56 UTC 2024 - 8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc
if (inserted) { function_list.push_back(called_func); } // Set the `called_index` attribute to the TF function's name. new_config.push_back(builder.getNamedAttr( kCalledIndexAttrName, builder.getI64IntegerAttr(it->second))); // Set the `tf.backend_config` attribute to the `new_config`. op->setAttr(kTfBackendConfigAttrName,
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/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc
execute_launch.getLoc(), new_output_types, var_access_info.new_operand_values, llvm::ArrayRef<NamedAttribute>{ builder->getNamedAttr( "device_var_reads_indices", builder->getI64ArrayAttr(device_var_reads_indices)), builder->getNamedAttr( "device_var_updates_indices", builder->getI64ArrayAttr(device_var_updates_indices))});
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 29 17:52:11 UTC 2024 - 27K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_restore_op.cc
/*shape=*/{}, /*elementType=*/builder.getType<TF::StringType>()); const auto file_prefix_attr = builder.getStringAttr(kTfFilePrefix); const auto arg_attrs = builder.getDictionaryAttr({builder.getNamedAttr( kTfSavedModelIndexPathAttr, builder.getArrayAttr({file_prefix_attr}))}); const int insert_idx = func_op.getNumArguments(); func_op.insertArgument(insert_idx, /*argType=*/filename_op_type, arg_attrs,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Mar 12 06:02:20 UTC 2023 - 9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc
SymbolTable table(root); (void)table.renameToUnique(func, {}); rewriter.setInsertionPointAfter(output_mul); auto composite_attrs = rewriter.getDictionaryAttr( {rewriter.getNamedAttr("approx", rewriter.getBoolAttr(false))}); auto composite_op = rewriter.create<stablehlo::CompositeOp>( output_mul.getLoc(), func.getResultTypes()[0],
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 9.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
auto feature_group_count_attr = rewriter.getNamedAttr( "feature_group_count", rewriter.getI64IntegerAttr(feature_group_count)); auto batch_group_count_attr = rewriter.getNamedAttr( "batch_group_count", rewriter.getI64IntegerAttr(1)); auto precision_config_attr = rewriter.getNamedAttr( "precision_config", GetPrecisionConfig(&rewriter));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc
} if (absl::StrContains(op_name, "Dataset") && mlir::isa<TF::FuncAttr>(*mlir_attr)) { mlir_attr = mlir::cast<TF::FuncAttr>(*mlir_attr).getName(); } attributes.push_back(builder.getNamedAttr(attr_name, *mlir_attr)); } return success(); } }; class LiftTfliteFlexOpsPass : public impl::LiftTfliteFlexOpsPassBase<LiftTfliteFlexOpsPass> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc
new_config.push_back(attr); } } Builder builder(op.getContext()); // Sets the `called_index` attribute to the TF function's name. new_config.push_back(builder.getNamedAttr(kCalledFuncAttrName, function_list[called_index])); // Sets the `tf.backend_config` attribute to the `new_config`. op->setAttr(kTfBackendConfigAttrName,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 11.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc
operand.index(), kAttrArgumentNameAttr); auto attr_value = signature.getArgAttr(operand.index(), kAttrArgumentDefaultAttr); arg_attrs->push_back( rewriter.getNamedAttr(attr_name.getValue(), attr_value)); continue; } // The index is valid for the call_op. Value input = call_op.getOperand(operand.index()); Operation* input_op = input.getDefiningOp();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc
} device_attrs.push_back( builder->getNamedAttr(tensorflow::GetDeviceAliasForLogicalCore(core), builder->getStrArrayAttr(devices_by_core))); // For data parallelism, also add replicated host devices, as these are // necessary for outside compilation. device_attrs.push_back(builder->getNamedAttr( tensorflow::GetDeviceAliasForHostOfLogicalCore(core),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 29.7K bytes - Viewed (0)