- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 89 for getStringAttr (0.15 sec)
-
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc
auto host_compute = builder.create<mlir::TF::_XlaHostComputeMlirOp>( loc, shard_output_types, manual_inputs, /*send_key=*/builder.getStringAttr(args_communication_key), /*recv_key=*/builder.getStringAttr(retvals_communication_key), /*host_mlir_module=*/builder.getStringAttr(serialized_func_module), /*manual_sharding=*/builder.getBoolAttr(true)); host_compute_out_ops.push_back(host_compute);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 68.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
op->getLoc(), ArrayRef<Type>{output_type}, /*input=*/legalized_lhs, /*filter=*/legalized_rhs, /*bias=*/no_input, /*fused_activation_function=*/rewriter.getStringAttr("NONE"), /*weights_format=*/rewriter.getStringAttr("DEFAULT"), /*keep_num_dims=*/rewriter.getBoolAttr(true), /*asymmetric_quantize_inputs=*/mlir::BoolAttr()); rewriter.replaceOp(op, {fc_op.getResult(0)}); return true;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/device_attribute_to_launch.cc
void runOnOperation() override; }; void WrapOpInLaunch(Operation* op, llvm::StringRef device) { OpBuilder builder(op); auto launch_op = builder.create<tf_device::LaunchOp>( op->getLoc(), builder.getStringAttr(device), /*result_types=*/op->getResultTypes()); op->replaceAllUsesWith(launch_op); launch_op.getBody().push_back(new Block); builder.setInsertionPointToEnd(&launch_op.GetBody()); auto* return_op =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 04 00:59:46 UTC 2022 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc
layer_norm_scale_type}; auto func_type = builder->getFunctionType(input_types, output_type); auto func = func::FuncOp::create( mlir::NameLoc::get(builder->getStringAttr("fused_func")), "fused_func", func_type, {}); func.addEntryBlock(); std::vector<std::string> attributes; if (ln) { attributes.push_back(kLayerNormalizedLstmCellSimple); } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_operator.cc
return builder.getStringAttr(option_name); } static mlir::Attribute BuildTFL_FullyConnectedOptionsWeightFormatAttr( tflite::FullyConnectedOptionsWeightsFormat value, mlir::Builder builder) { const char* option_name = tflite::EnumNameFullyConnectedOptionsWeightsFormat(value); return builder.getStringAttr(option_name); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 38K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc
output_feature_dimension: 3 output_spatial_dimensions: 1 output_spatial_dimensions: 2 )pb", &dimension_numbers)) { return rewriter.getStringAttr(""); } return rewriter.getStringAttr(dimension_numbers.SerializeAsString()); } Attribute GetBatchGroupCountValue( PatternRewriter& rewriter, llvm::StringMap<Attribute>& identifier_to_attr) { // Only 1 case is supported.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 18.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
/*input=*/lhs_value, /*filter=*/filter_constant_op.getResult(), /*bias=*/bias_tfl_op.getResult(), /*fused_activation_function=*/rewriter.getStringAttr("NONE"), /*weights_format=*/rewriter.getStringAttr("DEFAULT"), /*keep_num_dims=*/rewriter.getBoolAttr(false), asymmetric_quantize_inputs); } static Type GetOutputTypeAndOptionallyUpdateBias(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 09:00:19 UTC 2024 - 99.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc
llvm::ArrayRef<NamedAttribute>{ builder->getNamedAttr(kDeviceAttr, builder->getStringAttr(device)), builder->getNamedAttr("container", builder->getStringAttr("")), builder->getNamedAttr( "shared_name", builder->getStringAttr(GetRandomStateVariableName()))})); } return state_vars; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/visitor.cc
for (const llvm::StringRef function_name : function_names) { auto func = llvm::dyn_cast_or_null<func::FuncOp>(symbol_table.lookupSymbolIn( module, builder.getStringAttr(function_name))); if (func == nullptr) { return module.emitError() << "Cannot find function '" << function_name << "'"; } const WalkResult result = WalkReachableFunctions(
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/functional_control_flow_to_regions.cc
OpBuilder builder(if_op); auto if_region = builder.create<TF::IfRegionOp>( if_op.getLoc(), if_op.getResultTypes(), cond, if_op.getIsStateless(), builder.getStringAttr(if_op.then_function().getName()), builder.getStringAttr(if_op.else_function().getName())); CopyDeviceAndUnderscoredAttributes(if_op, if_region); CreateCall(if_op, if_op.then_function(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0)