- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 86 for StringAttr (0.2 sec)
-
tensorflow/compiler/mlir/tfr/passes/decompose.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc
llvm::dyn_cast<tf_device::LaunchOp>(preprocess_op->getParentOp()); // Device of original launch looked up before moving the preprocessing ops // around. StringAttr device = original_launch_op->getAttrOfType<StringAttr>(kDeviceAttr); if (!device) { return original_launch_op->emitOpError() << "Launch op has an invalid device attribute."; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc
using mlir::Builder; using mlir::IntegerAttr; using mlir::LogicalResult; using mlir::ModuleOp; using mlir::Operation; using mlir::OpOperand; using mlir::OpResult; using mlir::RankedTensorType; using mlir::StringAttr; using mlir::Value; using mlir::WalkResult; constexpr char kReplicateSharding[] = ""; constexpr char kShardingAttr[] = "mhlo.sharding"; constexpr char kUseSpmdAttr[] = "use_spmd_for_xla_partitioning";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 02:01:13 UTC 2024 - 28.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc
namespace { using mlir::Block; using mlir::BlockArgument; using mlir::BoolAttr; using mlir::ModuleOp; using mlir::OpBuilder; using mlir::Operation; using mlir::OperationPass; using mlir::Region; using mlir::StringAttr; using mlir::Type; using mlir::Value; using mlir::WalkResult; using mlir::func::FuncOp; constexpr char kXlaMapOutsideCompilationAttr[] = "_xla_map_outside_compilation";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc
} const auto empty_array_attr = ArrayAttr::get(ctx, {}); // TODO: b/310291615 - find a better way for platform support. const auto platforms = ArrayAttr::get( ctx, {StringAttr::get(ctx, kPlatformCpu), StringAttr::get(ctx, kPlatformTpu)}); auto xla_call_module_op = builder.create<TF::XlaCallModuleOp>( module_op.getLoc(), /*output=*/result_types, /*args=*/inputs,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.td
class IsFusedOpEndsWith<string OpName> : AttrConstraint< CPred<"!$_self.cast<ArrayAttr>().empty() && " "$_self.cast<ArrayAttr>()[$_self.cast<ArrayAttr>().size() - 1]." "cast<::mlir::StringAttr>().str() == \"" # OpName # "\"">, "Matching fused '" # OpName # "' op at the end">; //===----------------------------------------------------------------------===// // Pattern rules for lifting ops as functions
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 15.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc
*/ bool IsResourceMergeable(Attribute& resource_attr, Attribute& device_attr) { return resource_attr && ((resource_attr == device_attr) || (resource_attr.cast<mlir::StringAttr>().getValue().find( "COMPOSITE") != llvm::StringRef::npos)); } // Finds the variable access info for a TPUExecute op. // - `check_device` specifies whether it checks the device assignment of the
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/tensorflow/transforms/parallel_execute_to_islands.cc
std::string group_annotation = absl::StrCat( "p", std::to_string(parallel_group_idx), ":", std::to_string(i)); if (auto parallel_group_attr = parallel_execute_op->getAttrOfType<StringAttr>( TF::kParallelExecAnnotation)) { // Extend the existing attribute so that nested parallel execution // structure is supported.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 19 19:47:16 UTC 2023 - 11.1K 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)