Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for set_read_only (0.16 sec)

  1. 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)
  2. tensorflow/compiler/jit/variable_info_util.cc

            var_idx, handle.name(), variable, handle.definition_stack_trace());
        if (variables_updated != nullptr &&
            variables_updated->find(var_idx) == variables_updated->end()) {
          variable_info.set_read_only();
        }
      }
      return absl::OkStatus();
    }
    
    Status LockVariables(absl::Span<VariableInfo*> variables) {
      std::vector<int> lock_order(variables.size());
      std::iota(lock_order.begin(), lock_order.end(), 0);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 7K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/ArchiveTaskPermissionsIntegrationTest.groovy

            TestFile testDir = createDir('root') {
                def testDir = testdir {
                    def testFile = file('reference.txt')
                    assertTrue testFile.setReadOnly()
                }
                testDir.setReadOnly()
            }
            testDir.setReadOnly()
            def archName = "test.${taskName.toLowerCase()}"
            testDir."$packMethod"(file(archName))
            and:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 11 06:18:03 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/ClassInspectorTest.groovy

            }
        }
    
        class SpecializingType extends SomeClass {
            Long getProp() {
                return 12L
            }
    
            void setProp(Long l) {
            }
    
            void setReadOnly(String s) {
            }
    
            String getWriteOnly() {
                return ""
            }
        }
    
        def "can extract super types"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 23:46:06 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/aot/codegen_test.cc

      tf2xla::Variable* variable = config.add_variable();
      variable->set_node_name("myvar_readonly");
      variable->mutable_shape()->add_dim()->set_size(1);
      variable->set_type(DT_FLOAT);
      variable->set_readonly(true);
      tf2xla::Variable* variable2 = config.add_variable();
      variable2->set_node_name("myvar");
      variable2->mutable_shape()->add_dim()->set_size(1);
      variable2->set_type(DT_FLOAT);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 01 02:13:40 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/compile/BuildScriptCompileAvoidanceIntegrationTest.kt

    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Sep 24 17:45:42 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyPermissionsIntegrationTest.groovy

        def "file permissions are not preserved on OS without permission support"() {
            given:
            def testSourceFile = file("reference.txt") << 'test file"'
            assertTrue testSourceFile.setReadOnly()
            and:
            buildFile << """
            task copy(type: Copy) {
                from "reference.txt"
                into ("build/tmp")
            }
            """
            when:
            withDebugLogging()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 20K bytes
    - Viewed (0)
  8. src/cmd/link/internal/loader/symbolbuilder.go

    func (sb *SymbolBuilder) SetReachable(v bool) {
    	sb.l.SetAttrReachable(sb.symIdx, v)
    }
    
    func (sb *SymbolBuilder) ReadOnly() bool {
    	return sb.l.AttrReadOnly(sb.symIdx)
    }
    
    func (sb *SymbolBuilder) SetReadOnly(v bool) {
    	sb.l.SetAttrReadOnly(sb.symIdx, v)
    }
    
    func (sb *SymbolBuilder) DuplicateOK() bool {
    	return sb.l.AttrDuplicateOK(sb.symIdx)
    }
    
    func (sb *SymbolBuilder) SetDuplicateOK(v bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 15:25:19 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  9. src/cmd/link/internal/loadmacho/ldmacho.go

    		if bld.Type() != 0 {
    			return errorf("duplicate %s/%s", sect.segname, sect.name)
    		}
    
    		if sect.flags&0xff == 1 { // S_ZEROFILL
    			bld.SetData(make([]byte, sect.size))
    		} else {
    			bld.SetReadOnly(readOnly)
    			bld.SetData(dat[sect.addr-c.seg.vmaddr:][:sect.size])
    		}
    		bld.SetSize(int64(len(bld.Data())))
    
    		if sect.segname == "__TEXT" {
    			if sect.name == "__text" {
    				bld.SetType(sym.STEXT)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 12 18:45:57 UTC 2022
    - 19.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/SmbResource.java

    
        /**
         * Make this file read-only. This is shorthand for <tt>setAttributes(
         * getAttributes() | ATTR_READ_ONLY )</tt>.
         *
         * @throws CIFSException
         */
        void setReadOnly () throws CIFSException;
    
    
        /**
         * Set the attributes of this file. Attributes are composed into a
         * bitset by bitwise ORing the <tt>ATTR_*</tt> constants. Setting the
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 26K bytes
    - Viewed (0)
Back to top