- Sort Score
- Result 10 results
- Languages All
Results 11 - 19 of 19 for StringAttr (0.28 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc
// returns `std::nullopt`. std::optional<llvm::StringRef> GetTpuClusterName(Operation* op) { if (auto tpu_status = op->getAttrOfType<StringAttr>(kTpuStatusAttr)) { // Borrow cluster name from TPU status (for `TPUCompilationResult` op). return tpu_status.getValue(); } auto device_type = op->getAttrOfType<StringAttr>(TF::kCompileDeviceTypeAttr); if (!device_type || device_type.getValue() != TF::kTpuDevice) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 27.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.cc
} Value PadForDynamicShapedInputSamePadding( OpBuilder &builder, Location loc, Value input, Value filter, int8_t input_zp_value, ArrayAttr strides, ArrayAttr dilations, StringAttr conv_padding, Value &padding, int num_dims) { Value zero_rank1 = CreateConstValue<int32_t>(builder, loc, {1}, {0}); SmallVector<Value> temp_padding_values{zero_rank1, zero_rank1};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
// "axis" operand could be a i64 tensor. Resolve it here. IntegerAttr axis_i32; if (failed(ConvertToI32Attr(axis_int, &axis_i32))) return failure(); StringAttr fused_activation_function = StringAttr::get(rewriter.getContext(), "NONE"); rewriter.replaceOpWithNewOp<ConcatenationOp>( op, output_type, values, axis_i32, fused_activation_function); return success(); }
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/transforms/legalize_patterns.td
// Constraint that attribute is string with value either "SAME" or "VALID" def IsSameOrValid : AttrConstraint< CPred<"$_self.cast<StringAttr>().getValue() == \"SAME\" || " # "$_self.cast<StringAttr>().getValue() == \"VALID\"">, "'SAME' or 'VALID' paddings">; def TFL_GetMirrorPaddingType : NativeCodeCall< "mlir::TFL::MirrorPaddingTypeAttr::get($_builder.getContext(), " #
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 04 13:30:42 UTC 2024 - 28.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc
return arg_shape; } else { return std::get<TensorShape>(arg.shape); } } Status MaybeRewriteLayoutWithShardedShape( mlir::StringAttr sharding, const XlaShapeLayoutHelpers::ShapeDeterminationFns shape_determination_fns, xla::Shape* shape) { if (!sharding) return absl::OkStatus(); xla::OpSharding op_sharding;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 17:24:39 UTC 2024 - 45.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc
bool is_supported_affine_op = false; if (llvm::isa<TF::Conv2DOp, TF::Conv3DOp, TF::DepthwiseConv2dNativeOp>(op)) { if (const auto data_format = op->getAttrOfType<StringAttr>("data_format")) { is_supported_affine_op = data_format.getValue() == "NHWC" || data_format.getValue() == "NDHWC"; } } else if (llvm::isa<TF::BatchMatMulV2Op>(op)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc
} mlir::LogicalResult GetTopology(mlir::tf_device::ClusterOp cluster, std::string& topology) { mlir::StringAttr topology_attr = cluster->getAttrOfType<mlir::StringAttr>(tensorflow::kTopologyAttr); if (topology_attr) { topology = topology_attr.getValue(); return mlir::success(); } else { return cluster.emitOpError(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 10 20:10:40 UTC 2024 - 32.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc
template <typename UniformQuantizedConvolutionOp> FailureOr<ElementsAttr> ConvertPaddingAttr( UniformQuantizedConvolutionOp op, const xla::ConvolutionDimensionNumbers &dnums, PatternRewriter &rewriter) { StringAttr conv_padding = op.getPaddingAttr(); SmallVector<int64_t> padding_nums; ShapedType lhs_shape = mlir::cast<ShapedType>(op.getLhs().getType()); ShapedType rhs_shape = mlir::cast<ShapedType>(op.getRhs().getType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 30.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_operator.cc
#include "tsl/platform/status.h" namespace { using ::absl::StatusOr; using ::tensorflow::Status; using ::tensorflow::errors::InvalidArgument; StatusOr<mlir::StringAttr> GetPaddingAttr(TfLitePadding pad_params, mlir::Builder builder, mlir::Location loc) { auto padding = tflite::Padding::Padding_VALID;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 38K bytes - Viewed (0)