- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 73 for getStringAttr (0.26 sec)
-
tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc
} TEST_F(LiftAsFunctionCallTest, EinsumSupportedForXlaDotV2Succeeds) { StringAttr einsum_supported_by_xla_dot_v2_attr = builder_.getStringAttr("ijk,ikm->ijm"); StringAttr einsum_one_operand = builder_.getStringAttr("ijk->ikj"); StringAttr einsum_ellipsis = builder_.getStringAttr("...gse->...gs"); EXPECT_TRUE(IsEinsumSupportedByXlaDotV2(einsum_supported_by_xla_dot_v2_attr));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 26.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args.cc
for (auto arg_attr : arg_attrs) { if (arg_attr.getName() == "tf_saved_model.bound_input") continue; new_arg_attrs.emplace_back(arg_attr); } const NamedAttribute index_path_attr( builder.getStringAttr(kTfSavedModelIndexPathAttr), builder.getStrArrayAttr({index_path})); new_arg_attrs.emplace_back(index_path_attr); return new_arg_attrs; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc
DenseIntElementsAttr::get( RankedTensorType::get({1, num_replicas}, builder.getIntegerType(32)), group_assignment_val)); StringAttr reduce_op = builder.getStringAttr("Add"); StringAttr mode = builder.getStringAttr("CrossReplica"); return builder.create<XlaAllReduceOp>(block_arg.getLoc(), block_arg.getType(), block_arg, group_assignment, reduce_op,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 13 18:52:07 UTC 2024 - 13.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_calibration_statistics_saver.cc
OpBuilder builder(&ctx); // Set the insertion point right before the return op. builder.setInsertionPoint(®ion.back().back()); StringAttr output_file_path_attr = builder.getStringAttr(output_file_path); ArrayAttr ids_attr = builder.getStrArrayAttr(ids); ArrayAttr calibration_methods_attr = builder.getI32ArrayAttr(calibration_methods); builder.create<TF::CalibrationStatisticsSaverOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc
auto caller = builder.create<TF::StatefulPartitionedCallOp>( loc, result_types, operands, symbol, /*config=*/builder.getStringAttr(""), /*config_proto=*/builder.getStringAttr(""), /*executor_type=*/builder.getStringAttr("")); caller.setFAttr(symbol); // Set an attribute that our inliner will look for when choosing which // TF::StatefulPartitionedCallOps to inline.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 92.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc
mean_op.getLoc(), avg_pool_output_type, input, rewriter.getI32IntegerAttr(height), rewriter.getI32IntegerAttr(width), rewriter.getStringAttr("VALID"), rewriter.getI32IntegerAttr(1), rewriter.getI32IntegerAttr(1), rewriter.getStringAttr("NONE")); auto value_to_replace = avg_pool.getResult(); // If it's not keep dim, we need to insert a reshape after the average // pool.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 25.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc
/*lhs=*/input, /*rhs=*/filter, window_strides, padding, lhs_dilation, rhs_dilation, feature_group_count, builder.getStringAttr(dnums.SerializeAsString()), /*precision_config=*/builder.getStringAttr(precision_config_str)) .getOutput(); // Dynamic-range quantization wil always fall into this case. if (input_zp_value == 0) return xla_conv_output;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 47.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc
func->setAttr(kTfSavedModelExportedNamesAttr, builder.getStrArrayAttr({kSessionInitFuncName})); func->setAttr(kTfSavedModelInitializerTypeAttr, builder.getStringAttr(kTfSavedModelInitializerRestoreType)); func.setVisibility(mlir::func::FuncOp::Visibility::Public); auto func_builder = OpBuilder::atBlockBegin(func.addEntryBlock()); func_builder.create<mlir::func::ReturnOp>(func.getLoc());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.td
class CreateI64ArrayAttr<string values> : NativeCodeCall< "$_builder.getI64ArrayAttr("# values #")">; // Creates a string attribute with given values. class CreateStringAttr<string values> : NativeCodeCall< "$_builder.getStringAttr(\""# values #"\")">; // Creates a new F32 type with the same shape as the given value. def CloneTypeWithF32ElementType : NativeCodeCall< "CloneTypeWithNewElementType($0.getType(), $_builder.getF32Type())">;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 08 04:55:44 UTC 2024 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc
return failure(); } new_device_launch_op = builder.create<tf_device::LaunchOp>( tpu_copy_with_dynamic_shape_op->getLoc(), builder.getStringAttr(device_str), /*result_types=*/tpu_copy_with_dynamic_shape_op->getResultTypes()); new_device_launch_op.getBody().push_back(new Block); builder.setInsertionPointToEnd(&new_device_launch_op.GetBody());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.6K bytes - Viewed (0)