- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for bool_flag (0.19 sec)
-
tensorflow/compiler/mlir/python/BUILD
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag") load("//tensorflow:tensorflow.default.bzl", "filegroup") load("//tensorflow/core/platform:rules_cc.bzl", "cc_library") package( # copybara:uncomment default_applicable_licenses = ["//tensorflow:license"], default_visibility = ["//visibility:public"], licenses = ["notice"], ) bool_flag( name = "disable_mlir", build_setting_default = False, ) config_setting(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 07 23:17:10 UTC 2023 - 4.3K bytes - Viewed (0) -
tensorflow/BUILD
# Description: # TensorFlow is a computational framework, primarily for use in machine # learning applications. load("@bazel_skylib//lib:selects.bzl", "selects") load("@bazel_skylib//rules:common_settings.bzl", "bool_flag", "bool_setting") load("@local_config_cuda//cuda:build_defs.bzl", "if_cuda") load( "//tensorflow:tensorflow.bzl", "VERSION", "VERSION_MAJOR", "check_deps", "if_google", "if_oss",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 16:51:59 UTC 2024 - 53.5K bytes - Viewed (0) -
src/flag/flag_test.go
if err := f.Parse(args); err != nil { t.Fatal(err) } if !f.Parsed() { t.Error("f.Parse() = false after Parse") } if *boolFlag != true { t.Error("bool flag should be true, is ", *boolFlag) } if *bool2Flag != true { t.Error("bool2 flag should be true, is ", *bool2Flag) } if *intFlag != 22 { t.Error("int flag should be 22, is ", *intFlag) } if *int64Flag != 0x23 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:38:24 UTC 2024 - 22K bytes - Viewed (0) -
internal/config/bool-flag_test.go
testCases := []struct { flagStr string expectedResult BoolFlag expectedErr bool }{ {"", BoolFlag(false), true}, {"junk", BoolFlag(false), true}, {"true", BoolFlag(true), false}, {"false", BoolFlag(false), false}, {"ON", BoolFlag(true), false}, {"OFF", BoolFlag(false), false}, {"on", BoolFlag(true), false}, {"off", BoolFlag(false), false}, } for _, testCase := range testCases {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.5K bytes - Viewed (0) -
internal/config/bool-flag.go
import ( "encoding/json" "fmt" "strconv" "strings" ) // BoolFlag - wrapper bool type. type BoolFlag bool // String - returns string of BoolFlag. func (bf BoolFlag) String() string { if bf { return "on" } return "off" } // MarshalJSON - converts BoolFlag into JSON data. func (bf BoolFlag) MarshalJSON() ([]byte, error) { return json.Marshal(bf.String()) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 07 15:10:40 UTC 2022 - 2.3K bytes - Viewed (0) -
cmd/main.go
Usage: "path to certs directory", }, cli.BoolFlag{ Name: "quiet", Usage: "disable startup and info messages", }, cli.BoolFlag{ Name: "anonymous", Usage: "hide sensitive information from logging", }, cli.BoolFlag{ Name: "json", Usage: "output logs in JSON format", }, // Deprecated flag, so its hidden now, existing deployments will keep working. cli.BoolFlag{ Name: "compat",
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 6.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_flags.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 06 17:53:14 UTC 2023 - 3.9K bytes - Viewed (0) -
src/cmd/go/internal/base/goflags.go
if hideErrors { continue } Fatalf("go: parsing $GOFLAGS: unknown flag -%s", name) } } } // boolFlag is the optional interface for flag.Value known to the flag package. // (It is not clear why package flag does not export this interface.) type boolFlag interface { flag.Value IsBoolFlag() bool } // SetFromGOFLAGS sets the flags in the given flag set using settings in $GOFLAGS.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 19 14:42:39 UTC 2023 - 4.5K bytes - Viewed (0) -
src/cmd/go/internal/cmdflag/flag.go
// fs.Visit will correctly visit the flags that have been set. failf := func(format string, a ...any) (*flag.Flag, []string, error) { return f, args, fmt.Errorf(format, a...) } if fv, ok := f.Value.(boolFlag); ok && fv.IsBoolFlag() { // special case: doesn't need an arg if hasValue { if err := fs.Set(name, value); err != nil { return failf("invalid boolean value %q for -%s: %v", value, name, err) } } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 06 02:38:04 UTC 2022 - 3.6K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/util/cmdutil_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 4K bytes - Viewed (0)