- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 74 for getStringAttr (0.38 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/custom_call.cc
auto tfl_custom = rewriter.create<TFL::CustomOp>( mhlo_custom_call.getLoc(), mhlo_custom_call.getResultTypes(), mhlo_custom_call.getInputs()); tfl_custom.setCustomCodeAttr( rewriter.getStringAttr(mhlo_custom_call.getCallTargetName())); if (auto bc = mhlo_custom_call.getBackendConfig()) { if (auto stringattr = mlir::dyn_cast_or_null<mlir::StringAttr>(*bc)) { tfl_custom.setCustomOptionAttr(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
/*input=*/fc_op.getInput(), /*filter=*/filter, /*bias=*/bias, /*fused_activation_function=*/ rewriter.getStringAttr(add_op.getFusedActivationFunction()), /*weights_format=*/rewriter.getStringAttr(fc_op.getWeightsFormat()), /*keep_num_dims=*/rewriter.getBoolAttr(fc_op.getKeepNumDims()), /*asymmetric_quantize_inputs=*/ fc_op.getAsymmetricQuantizeInputsAttr());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_formation.cc
// "device" attribute since launch op already carries device information. Block* block = ®ion.front(); for (Operation* op : c.ops) { op->moveBefore(block, block->end()); op->removeAttr(builder->getStringAttr("device")); } // Get all escaped live-out values of region, they are used later to determine // return values and types of launch op. llvm::SmallVector<Value, 4> live_outs;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 05 13:30:21 UTC 2023 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc
auto caller = builder.create<TF::StatefulPartitionedCallOp>( loc, result_types, operands.getArrayRef(), symbol, /*config=*/builder.getStringAttr(""), /*config_proto=*/builder.getStringAttr(""), /*executor_type=*/builder.getStringAttr("")); caller.setFAttr(symbol); return caller; } func::FuncOp CreateFnWithSignature(ModuleOp module,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.4K bytes - Viewed (0) -
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/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)