Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 190 for StringAttr (0.17 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

          block_arg.getLoc(),
          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(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

            parsed_name.id = 0;
            parsed_name.has_id = true;
          }
          output.push_back(mlir::NamedAttribute(
              mlir::StringAttr::get(context, "device"),
              mlir::StringAttr::get(
                  context,
                  tensorflow::DeviceNameUtils::ParsedNameToString(parsed_name))));
        } else {
          output.push_back(attr);
        }
      }
      return mlir::success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/ir/tfl_op_enums.td

    class TFL_AnyStrAttrOf<list<string> cases> : StringBasedAttr<
      CPred<!foldl(
          "$_self.cast<StringAttr>().getValue() == \"" # !head(cases) # "\"",
          !foreach(case, !tail(cases),
                   "$_self.cast<StringAttr>().getValue() == \"" # case # "\""),
          prev, cur, prev # " || " # cur)>,
      "string attribute whose value is " #
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 20 00:05:24 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc

    LogicalResult AssignDevicesInRegion(const Dialect* tf_dialect,
                                        tf_device::LaunchOp launch,
                                        Region& region) {
      auto parallel_group_attr =
          launch->getAttrOfType<StringAttr>(TF::kParallelExecAnnotation);
      auto result = region.walk([&](Operation* op) -> WalkResult {
        if (op->getDialect() != tf_dialect) return WalkResult::advance();
    
        if (parallel_group_attr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/hoist_broadcast_read.cc

    namespace internal {
    
    namespace {
    
    using mlir::BlockArgument;
    using mlir::failure;
    using mlir::LogicalResult;
    using mlir::Operation;
    using mlir::OperationPass;
    using mlir::OpOperand;
    using mlir::StringAttr;
    using mlir::success;
    using mlir::Value;
    using mlir::WalkResult;
    using mlir::func::FuncOp;
    using mlir::TF::ReadVariableOp;
    using mlir::tf_device::ReplicateOp;
    
    #define GEN_PASS_DEF_HOISTBROADCASTREADPASS
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

      return op->hasAttr(TF::kReplicationInfoAttr);
    }
    
    StringAttr GetReplicationAttr(mlir::Operation* op) {
      return op->getAttrOfType<StringAttr>(TF::kReplicationInfoAttr);
    }
    
    StringAttr GetReplicationAttr(TF::TPUCompilationResultOp op) {
      // Special case for getting the replication region for
      // TPUCompilationResultsOp.
      return op->getAttrOfType<StringAttr>(kTpuCompilationStatus);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      Operation* op = val.getDefiningOp();
      // val should always have a defining op because cluster inputs always have
      // defining ops.
      assert(op);
      StringAttr sharding_attr = op->getAttrOfType<StringAttr>("_XlaSharding");
      if (!sharding_attr)
        return context_op->emitOpError()
               << "A map_outside_compilation op's input should have an explicit "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

      DeviceNameUtils::ParsedName device;
    
      for (const auto& kv : llvm::enumerate(array_attr)) {
        const int idx = kv.index();
    
        auto string_attr = mlir::dyn_cast<mlir::StringAttr>(kv.value());
        if (!string_attr)
          return op->emitOpError(llvm::formatv(
              "bad '{0}' attribute at index {1}, not a string", kDevicesAttr, idx));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/custom_call.h

          ConversionPatternRewriter& rewriter) const final;
    };
    
    // Ops that have a call_target_name starting with the prefix "custom_call." and
    // backend_config of type StringAttr (if specified) should be legalized (i.e.
    // considered to be illegal if still present after this pass is complete).
    std::optional<bool> IsCustomCallLegal(mhlo::CustomCallOp op);
    
    }  // namespace odml
    }  // namespace mlir
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 02:41:24 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

        auto replication_info_attr_str =
            mlir::dyn_cast<StringAttr>(replication_info_attr);
        if (!replication_info_attr_str ||
            replication_info_attr_str.getValue().empty())
          return metadata_op.emitError() << kBadReplicateInfoAttrMsg;
    
        // Remove `name` attribute.
        attrs.erase(StringAttr::get(metadata_op.getContext(), kNameAttr));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
Back to top