Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for kDeviceOrdinalAttr (0.15 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/replica_id_to_device_ordinal.cc

        // replicate_to_islands pass.
        Operation* op = require_device_ordinal_ops.front();
        if (op->getAttrOfType<IntegerAttr>(kDeviceOrdinalAttr).getInt() == -1) {
          OpBuilder builder(op);
          op->setAttr(kDeviceOrdinalAttr, builder.getI64IntegerAttr(0));
        }
      } else {
        // If the device ordinal attribute is -1, set it with the replica id
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc

    namespace mlir {
    namespace TFDevice {
    namespace {
    constexpr char kDeviceAttr[] = "device";
    constexpr char kReplicaIdAttr[] = "_xla_replica_id";
    constexpr char kDeviceOrdinalAttr[] = "device_ordinal";
    
    #define GEN_PASS_DEF_REPLICATETOISLANDPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    struct ReplicateToIslandPass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 24 21:01:40 UTC 2023
    - 16.9K bytes
    - Viewed (0)
Back to top