Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for kReplicationInfoAttr (0.49 sec)

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

        if (!metadata_op) continue;
    
        NamedAttrList attrs(metadata_op->getAttrDictionary());
    
        // Missing or bad `_replication_info` attribute.
        auto replication_info_attr = attrs.get(mlir::TF::kReplicationInfoAttr);
        if (!replication_info_attr)
          return metadata_op.emitError() << kBadReplicateInfoAttrMsg;
    
        auto replication_info_attr_str =
            mlir::dyn_cast<StringAttr>(replication_info_attr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

          return true;
        }
      }
      return false;
    }
    
    bool IsTPUOp(mlir::Operation* op) {
      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
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

        // Op does not belong to a TPU cluster.
        return std::nullopt;
      }
      // Op belongs to a TPU cluster.
      if (auto replication_info =
              op->getAttrOfType<StringAttr>(TF::kReplicationInfoAttr)) {
        // Borrow cluster name from replication info.
        return replication_info.getValue();
      }
      // Use special cluster name for non-replicated case.
      return kNoReplicationCluster;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

        if (failed(TF::HasValidCompilationAndReplicationAttributes(*op)))
          return WalkResult::interrupt();
        // Skip non-tpu device cluster_func.
        auto cluster_id = op->getAttrOfType<StringAttr>(TF::kReplicationInfoAttr);
        if (!cluster_id) return WalkResult::advance();
    
        if (failed(Rewrite(module_name, op, devices.device_names(),
                           compilation_results[cluster_id], &builder,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top