Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for set_readonly (0.22 sec)

  1. 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)
  2. 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)
  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. build-logic/documentation/src/test/resources/org/gradle/test/JavaClass.java

    package org.gradle.test;
    
    /**
     * This is a java class.
     */
    public class JavaClass extends A implements CombinedInterface, JavaInterface {
        /**
         * A read-only property.
         */
        public String getReadOnly() {
            return "value";
        }
    
        /**
         * An ignored field.
         */
        String ignoreMe1;
    
        /**
         * Another ignored field.
         */
        final long ignoreMe2 = 9;
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  5. pkg/volume/flexvolume/attacher-defaults.go

    	volSourceFSType, err := getFSType(spec)
    	if err != nil {
    		return err
    	}
    
    	readOnly, err := getReadOnly(spec)
    	if err != nil {
    		return err
    	}
    
    	options := make([]string, 0)
    
    	if readOnly {
    		options = append(options, "ro")
    	} else {
    		options = append(options, "rw")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 17 04:51:24 UTC 2020
    - 2.4K bytes
    - Viewed (0)
  6. build-logic/documentation/src/test/resources/org/gradle/test/GroovyClass.groovy

        def String[] arrayProp
    
        private def ignoreMe1;
        public int ignoreMe2;
        protected int ignoreMe3;
        static String ignoreMe4;
    
        /**
         * A read-only property.
         */
        def getReadOnly() {
            'value'
        }
    
        /**
         * A property.
         */
        CombinedInterface getSomeProp() {
            this
        }
    
        void setSomeProp(CombinedInterface value) {
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 915 bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. pkg/volume/flexvolume/util.go

    		if len(secretNamespace) == 0 {
    			secretNamespace = podNamespace
    		}
    		return secretName, secretNamespace, nil
    	}
    	return "", "", errNotFlexVolume
    }
    
    func getReadOnly(spec *volume.Spec) (bool, error) {
    	if spec.Volume != nil && spec.Volume.FlexVolume != nil {
    		return spec.Volume.FlexVolume.ReadOnly, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 14 13:58:56 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  10. pkg/volume/flexvolume/plugin.go

    	sourceDriver, err := getDriver(spec)
    	if err != nil {
    		return nil, err
    	}
    
    	readOnly, err := getReadOnly(spec)
    	if err != nil {
    		return nil, err
    	}
    
    	var metricsProvider volume.MetricsProvider
    	if plugin.capabilities.SupportsMetrics {
    		metricsProvider = volume.NewMetricsStatFS(plugin.host.GetPodVolumeDir(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.7K bytes
    - Viewed (0)
Back to top