Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for flagval (0.26 sec)

  1. src/cmd/compile/internal/inline/inlheur/funcprops_test.go

    		}
    		// expected format: "// callsite: <expanded pos> flagstr <desc> flagval <flags> score <score> mask <scoremask> maskstr <scoremaskstring>"
    		fields := strings.Fields(line)
    		if len(fields) != 12 {
    			return funcInlHeur, nil, fmt.Errorf("malformed callsite (nf=%d) %s line %d: %s", len(fields), dr.p, dr.ln, line)
    		}
    		if fields[2] != "flagstr" || fields[4] != "flagval" || fields[6] != "score" || fields[8] != "mask" || fields[10] != "maskstr" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 15K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/go/constant/value.go

    func i64tor(x int64Val) ratVal   { return ratVal{newRat().SetInt64(int64(x))} }
    func i64tof(x int64Val) floatVal { return floatVal{newFloat().SetInt64(int64(x))} }
    func itor(x intVal) ratVal       { return ratVal{newRat().SetInt(x.val)} }
    func itof(x intVal) floatVal     { return floatVal{newFloat().SetInt(x.val)} }
    func rtof(x ratVal) floatVal     { return floatVal{newFloat().SetRat(x.val)} }
    func vtoc(x Value) complexVal    { return complexVal{x, int64Val(0)} }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  5. src/debug/buildinfo/buildinfo_test.go

    	"debug/buildinfo"
    	"debug/pe"
    	"encoding/binary"
    	"flag"
    	"fmt"
    	"internal/testenv"
    	"os"
    	"os/exec"
    	"path"
    	"path/filepath"
    	"regexp"
    	"runtime"
    	"strings"
    	"testing"
    )
    
    var flagAll = flag.Bool("all", false, "test all supported GOOS/GOARCH platforms, instead of only the current platform")
    
    // TestReadFile confirms that ReadFile can read build information from binaries
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  6. 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)
  7. src/go/constant/value_test.go

    }
    
    func TestFractions(t *testing.T) {
    	for _, test := range fracTests {
    		x := val(test)
    		// We don't check the actual numerator and denominator because they
    		// are unlikely to be 100% correct due to floatVal rounding errors.
    		// Instead, we compute the fraction again and compare the rounded
    		// result.
    		q := BinaryOp(Num(x), token.QUO, Denom(x))
    		got := q.String()
    		want := x.String()
    		if got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 15.6K bytes
    - Viewed (0)
  8. 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)
  9. 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