Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 688 for read_only (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

                                              bool read_only) {
      VLOG(4) << "    Updating access for resource " << resource_id;
      op_to_resource_ids_[op].push_back({resource_id, read_only});
    
      // For unknown ID case, first update access info for all other resource IDs.
      if (resource_id == kUnknownResourceId) {
        if (read_only) {
          // New unknown read is not tracked by any other access.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/PackageSanityTests.java

        setDefault(int.class, 32);
        setDefault(String.class, "abcd");
        setDefault(Method.class, AbstractPackageSanityTests.class.getDeclaredMethods()[0]);
        setDefault(MapMode.class, MapMode.READ_ONLY);
        setDefault(CharsetEncoder.class, Charsets.UTF_8.newEncoder());
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 1.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/PackageSanityTests.java

        setDefault(int.class, 32);
        setDefault(String.class, "abcd");
        setDefault(Method.class, AbstractPackageSanityTests.class.getDeclaredMethods()[0]);
        setDefault(MapMode.class, MapMode.READ_ONLY);
        setDefault(CharsetEncoder.class, Charsets.UTF_8.newEncoder());
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Sep 15 13:47:32 UTC 2016
    - 1.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/variable_info.h

      // by this thread.
      bool shared_lock_held() const { return shared_lock_held_; }
      void set_shared_lock_held() { shared_lock_held_ = true; }
    
      bool read_only() const { return read_only_; }
      void set_read_only() { read_only_ = true; }
    
      const std::optional<ManagedStackTrace>& definition_stack_trace() const {
        return definition_stack_trace_;
      }
    
      ~VariableInfo();
    
     private:
      int index_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 14 21:57:02 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.h

                                    bool read_only);
    
      // Updates resource access for given `resource_id` and `op` in
      // `per_resource_access_info_` and `op_to_resource_ids_`.
      void UpdateAccess(ResourceId resource_id, Operation* op, bool read_only);
    
      // Returns true iff the last unknown resource access is already indirectly
      // tracked by a previous `resource` access. `read_only` specifies the type of
      // access considered.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

        written_resources_.remove(resource);
      }
    
      // Replaces all resource loads in all regions attached to the op.
      void ReplaceResourceLoads(bool read_only) {
        llvm::for_each(op_->getRegions(), [&](Region& region) {
          ReplaceResourceLoads(region, read_only);
        });
      }
    
      static LogicalResult ReplaceOpWithNewOp(Operation* op);
    
     private:
      // Returns if any resources need lifting.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/check_control_dependencies.cc

                                   const ResourceIdVec& other_resource_ids) {
      for (const auto& [resource_id, read_only] : resource_ids) {
        for (const auto& [other_resource_id, other_read_only] :
             other_resource_ids) {
          if (IsPotentiallySameResource(resource_id, other_resource_id) &&
              !(read_only && other_read_only)) {
            return true;
          }
        }
      }
      return false;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 10.2K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/containers/GradleInContainer.groovy

            executer.withGradleUserHomeDir(new File("/gradle-home"))
        }
    
        GradleInContainer bindReadOnly(File local, String containerPath) {
            container.addFileSystemBind(local.absolutePath, containerPath, BindMode.READ_ONLY, SelinuxContext.NONE)
            this
        }
    
        GradleInContainer bindWritable(File local, String containerPath) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/variable_info_util.h

    //
    // `variables` is allowed to contain instances that don't track a resource
    // variable (i.e. variables[i].var() can be null for some i).
    //
    // If the variable is read_only(), only acquires reader locks.
    Status LockVariables(absl::Span<VariableInfo*> variables)
        TF_EXCLUSIVE_LOCK_FUNCTION();
    Status LockVariables(absl::Span<VariableInfo> variables)
        TF_EXCLUSIVE_LOCK_FUNCTION();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 14 21:57:02 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/variable_info_util.cc

          // objects are destroyed.
          // TODO(b/128495870) Add support for passing aliased resource variables.
          return errors::Unimplemented("Duplicate variable passed to XLA cluster");
        }
        if (variables[i]->read_only()) {
          VLOG(4) << "Acquiring reader lock for variable "
                  << reinterpret_cast<void*>(variable);
          mu->lock_shared();
          variables[i]->set_shared_lock_held();
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top