Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for flagval (0.17 sec)

  1. src/flag/flag.go

    If you like, you can bind the flag to a variable using the Var() functions.
    
    	var flagvar int
    	func init() {
    		flag.IntVar(&flagvar, "flagname", 1234, "help message for flagname")
    	}
    
    Or you can create custom flags that satisfy the Value interface (with
    pointer receivers) and couple them to flag parsing by
    
    	flag.Var(&flagVal, "name", "help message for flagname")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 39.7K bytes
    - Viewed (0)
  2. src/flag/flag_test.go

    // Declare a user-defined flag type.
    type flagVar []string
    
    func (f *flagVar) String() string {
    	return fmt.Sprint([]string(*f))
    }
    
    func (f *flagVar) Set(value string) error {
    	*f = append(*f, value)
    	return nil
    }
    
    func TestUserDefined(t *testing.T) {
    	var flags FlagSet
    	flags.Init("test", ContinueOnError)
    	flags.SetOutput(io.Discard)
    	var v flagVar
    	flags.Var(&v, "v", "usage")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc

          static_cast<int>(is_weight_buffer);
      int64_t storage_max =
          QuantizedType::getDefaultMaximumForInteger(is_signed, bitwidth);
      uint32_t flags =
          is_signed ? mlir::quant::QuantizationFlags::FlagValue::Signed : 0;
    
      // Zero scales we make the minimum fp value, this is because some flatbuffers
      // contain zero scale for zero values.
      llvm::SmallVector<double> scales;
      for (float scale : quant_params.scale) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. pkg/config/validation/agent/validation.go

    	return nil
    }
    
    // validateCustomTags validates that tracing CustomTags map does not contain any nil items
    func validateCustomTags(tags map[string]*meshconfig.Tracing_CustomTag) error {
    	for tagName, tagVal := range tags {
    		if tagVal == nil {
    			return fmt.Errorf("encountered nil value for custom tag: %s", tagName)
    		}
    	}
    	return nil
    }
    
    // ValidateFQDN checks a fully-qualified domain name
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/main.go

    	flagExtar      = flag.String("extar", "", "archive program for buildmode=c-archive")
    
    	flagCaptureHostObjs = flag.String("capturehostobjs", "", "capture host object files loaded during internal linking to specified dir")
    
    	flagA             = flag.Bool("a", false, "no-op (deprecated)")
    	FlagC             = flag.Bool("c", false, "dump call graph")
    	FlagD             = flag.Bool("d", false, "disable dynamic executable")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top