Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for kClassAttr (0.09 sec)

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

          if (HasDevice(split) || split->getAttrOfType<ArrayAttr>(kClassAttr))
            return WalkResult::advance();
          for (Operation* pred : IslandPredecessors(split)) {
            if (auto colocation_classes =
                    pred->getAttrOfType<ArrayAttr>(kClassAttr)) {
              split->setAttr(kClassAttr, colocation_classes);
              return WalkResult::advance();
            }
          }
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 18:44:34 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_cluster_cleanup_attributes.cc

    #include "tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h"
    
    namespace mlir {
    namespace TFTPU {
    
    namespace {
    
    constexpr char kDeviceAttr[] = "device";
    constexpr char kClassAttr[] = "_class";
    
    #define GEN_PASS_DEF_TPUCLEANUPCLUSTERATTRIBUTESPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    class TPUCleanupClusterAttributesPass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc

      ArrayAttr classes_attr = op->getAttrOfType<ArrayAttr>(kClassAttr);
      if (!classes_attr) {
        // Attempt to parse "_class" from the IdentityOp that follows VariableV2.
        // For read-only reference variables, IdentityOp should be the only user of
        // VariableV2.
        auto identity_op = op->getUsers().begin();
        classes_attr = identity_op->getAttrOfType<ArrayAttr>(kClassAttr);
        if (!classes_attr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top