Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/bucket-targets.go

    }
    
    // RemoveTarget - removes a remote bucket target for this source bucket.
    func (sys *BucketTargetSys) RemoveTarget(ctx context.Context, bucket, arnStr string) error {
    	if arnStr == "" {
    		return BucketRemoteArnInvalid{Bucket: bucket}
    	}
    
    	arn, err := madmin.ParseARN(arnStr)
    	if err != nil {
    		return BucketRemoteArnInvalid{Bucket: bucket}
    	}
    
    	if arn.Type == madmin.ReplicationService {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 01:09:56 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. src/math/rand/v2/regress_test.go

    					val = fmt.Sprintf("%#v", out)
    				} else {
    					val = fmt.Sprintf("%T(%v)", out, out)
    				}
    				fmt.Fprintf(&buf, "\t%s, // %s(%s)\n", val, m.Name, argstr)
    			} else if p >= len(regressGolden) {
    				t.Errorf("r.%s(%s) = %v, missing golden value", m.Name, argstr, out)
    			} else {
    				want := regressGolden[p]
    				if m.Name == "Int" {
    					want = int64(int(uint(want.(int64)) << 1 >> 1))
    				}
    				if m.Name == "Uint" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:03:11 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/process/internal/JvmOptions.java

            for (Object argument : arguments) {
                String argStr = argument.toString();
    
                if (argStr.equals("-ea") || argStr.equals("-enableassertions")) {
                    assertionsEnabled = true;
                } else if (argStr.equals("-da") || argStr.equals("-disableassertions")) {
                    assertionsEnabled = false;
                } else if (argStr.startsWith(XMS_PREFIX)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:45:59 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/abi.go

    			// Parse line.
    			if len(parts) != 3 {
    				log.Fatalf(`%s:%d: invalid symabi: syntax is "%s sym abi"`, file, lineNum, parts[0])
    			}
    			sym, abistr := parts[1], parts[2]
    			abi, valid := obj.ParseABI(abistr)
    			if !valid {
    				log.Fatalf(`%s:%d: invalid symabi: unknown abi "%s"`, file, lineNum, abistr)
    			}
    
    			sym = s.canonicalize(sym)
    
    			// Record for later.
    			if parts[0] == "def" {
    				s.defs[sym] = abi
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc

      TFE_DeleteContextOptions(opts);
    
      std::string model_dir = SavedModelPath("VarsAndArithmeticObjectGraph");
    
      TF_SavedModel* saved_model =
          TF_LoadSavedModelWithTags(model_dir.c_str(), ctx, kServeTag, 1, status);
    
      // TODO(bmzhao): Change this to expect TF_OK when loading is implemented.
      // That unblocks writing other tests that require a TF_SavedModel*,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 08:08:45 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf_test.cc

      std::string mat_mul_method =
          absl::StrFormat(kMatMulModuleStr, test_case.mat_mul_method);
      TF_ASSERT_OK_AND_ASSIGN(
          XlaCompiler::CompilationResult result,
          CompileMlirModule(
              mat_mul_method.c_str(),
              ConfigProto::Experimental::MLIR_BRIDGE_ROLLOUT_UNSPECIFIED));
    }
    
    INSTANTIATE_TEST_SUITE_P(
        BatchMatMulTest, BatchMatMulTest,
        ::testing::ValuesIn<MatMulTestCase>({
            {"BatchMatMul"},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  7. tests/test_path.py

            {
                "detail": [
                    {
                        "loc": ["path", "item_id"],
                        "msg": "ensure this value has at least 3 characters",
                        "type": "value_error.any_str.min_length",
                        "ctx": {"limit_value": 3},
                    }
                ]
            }
        )
    
    
    def test_path_param_maxlength_foo():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  8. tests/test_annotated.py

            | IsDict(
                {
                    "ctx": {"limit_value": 1},
                    "loc": ["query", "foo"],
                    "msg": "ensure this value has at least 1 characters",
                    "type": "value_error.any_str.min_length",
                }
            )
        ]
    }
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            ("/default", 200, {"foo": "foo"}),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. src/net/http/request_test.go

    				req.AddCookie(c)
    			}
    
    			got := req.CookiesNamed(tt.filter)
    
    			if !reflect.DeepEqual(got, tt.want) {
    				asStr := func(v any) string {
    					blob, _ := json.MarshalIndent(v, "", "  ")
    					return string(blob)
    				}
    				t.Fatalf("Result mismatch\n\tGot: %s\n\tWant: %s", asStr(got), asStr(tt.want))
    			}
    		})
    	}
    }
    
    const (
    	fileaContents = "This is a test file."
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc

      return FlatBufferModel::BuildFromFile(model_path.c_str());
    }
    
    std::unique_ptr<FlatBufferModel> ReadSharedWeightsTestModel() {
      auto model_path = tensorflow::io::JoinPath(*g_test_model_dir,
                                                 internal::kModelWithSharedWeights);
      return FlatBufferModel::BuildFromFile(model_path.c_str());
    }
    
    std::unique_ptr<FlatBufferModel> ReadGatherTestModel() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 32.3K bytes
    - Viewed (0)
Back to top