Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for UniqueResourceAllocation (0.4 sec)

  1. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.h

        if (it == id_to_resource_values_.end()) {
          return {};  // return empty set
        }
        return it->getSecond();
      }
    
      // Returns true iff given resource is allocated by op with
      // `UniqueResourceAllocation` trait. This can be utilized for while-loop
      // parallelization.
      bool IsUniqueResourceAllocationId(int64_t resource_id) const {
        return unique_resource_allocation_ids_.contains(resource_id);
      }
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h

        return detail::foldInvolution(op);
      }
    };
    
    // Indicates that any returned resource is unique.
    template <typename ConcreteType>
    class UniqueResourceAllocation
        : public TraitBase<ConcreteType, UniqueResourceAllocation> {
     public:
      // Implements method required for `ResourceHandleAllocatorInterface`.
      llvm::SmallVector<mlir::TF::ResourceHandleValueAndId>
      GetResourceHandleValueAndIdList(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc

            // Keep track of IDs of resources that are allocated by ops with
            // `UniqueResourceAllocation` trait, this can be utilized for while-loop
            // parallelization (every iteration creates a new unique resource).
            if (op->hasTrait<OpTrait::TF::UniqueResourceAllocation>()) {
              unique_resource_allocation_ids_.insert(resource_handle.id);
            }
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.h

      const llvm::SmallVector<std::pair<ResourceId, bool>>& GetResourceIds(
          Operation* op) const;
    
      // Returns true iff given resource is allocated by op with
      // `UniqueResourceAllocation` trait. This can be utilized for while-loop
      // parallelization.
      bool IsUniqueResourceAllocationId(ResourceId resource_id) const {
        return alias_analysis_.IsUniqueResourceAllocationId(resource_id);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

          } else {
            resource_and_device = std::make_pair(resource_id, kAnyDevice);
          }
    
          // If the resource was allocated by an op with `UniqueResourceAllocation`
          // trait, then we don't need to chain resource ops accessing this resource
          // between iterations: Every iteration will create a new independent
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td

    // Example op where the invariant is not true: `TF_VarHandleOp`.
    def TF_UniqueResourceAllocation: TraitList<[
        TF_ResourceHandleAllocatorInterface,
        NativeOpTrait<"TF::UniqueResourceAllocation">
    ]>;
    
    //===----------------------------------------------------------------------===//
    // Rank/Shape helpers.
    //===----------------------------------------------------------------------===//
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 30.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/side-effect-analysis-test.mlir

    // Tests two side-effecting ops operating on resources that are allocated in the
    // same function. The expectation is that the ops are treated as independent
    // (as the involved resource allocators have the `UniqueResourceAllocation`
    // trait).
    func.func @side_effecting_ops_with_different_resources_and_allocations(
      // expected-remark@above {{ID: 9}}
      %arg0: tensor<i32>,
      %arg1: tensor<f32>) {
      tf_executor.graph {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 20 04:39:18 UTC 2023
    - 129.7K bytes
    - Viewed (0)
Back to top