Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for str1 (0.03 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/dump_graph_test.cc

    }
    
    // WritableFile that simply concats into string.
    class StringWritableFile : public WritableFile {
     public:
      explicit StringWritableFile(string* str) : str_(*str) {}
    
      Status Append(StringPiece data) override {
        absl::StrAppend(&str_, data);
        return absl::OkStatus();
      }
    
      Status Close() override { return absl::OkStatus(); }
    
      Status Flush() override { return absl::OkStatus(); }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. pkg/controlplane/reconcilers/reconcilers.go

    	LeaseEndpointReconcilerType,
    	NoneEndpointReconcilerType,
    }
    
    // Names returns a slice of all the reconciler names
    func (t Types) Names() []string {
    	strs := make([]string, len(t))
    	for i, v := range t {
    		strs[i] = string(v)
    	}
    	return strs
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 26 13:49:31 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  3. src/internal/coverage/cfile/ts_test.go

    	}
    
    	// Look for the expected things in the coverage profile.
    	contents, err := os.ReadFile(textfile)
    	strc := string(contents)
    	if err != nil {
    		t.Fatalf("problems reading text file %s: %v", textfile, err)
    	}
    	if !strings.Contains(strc, token) {
    		t.Logf("content: %s\n", string(contents))
    		t.Fatalf("cov profile does not contain aux meta content %q", token)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:58:07 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. src/internal/cpu/cpu_arm.go

    		{Name: "v7atomics", Feature: &ARM.HasV7Atomics},
    	}
    
    	// HWCAP feature bits
    	ARM.HasVFPv4 = isSet(HWCap, hwcap_VFPv4)
    	ARM.HasIDIVA = isSet(HWCap, hwcap_IDIVA)
    	// lpae is required to make the 64-bit instructions LDRD and STRD (and variants) atomic.
    	// See ARMv7 manual section B1.6.
    	// We also need at least a v7 chip, for the DMB instruction.
    	ARM.HasV7Atomics = isSet(HWCap, hwcap_LPAE) && isV7(Platform)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:38:55 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/switch_test.go

    	benchmarkSwitchInterfaceType(b, false)
    }
    
    type SI0 interface {
    	si0()
    }
    type ST0 struct {
    }
    
    func (ST0) si0() {
    }
    
    type SI1 interface {
    	si1()
    }
    type ST1 struct {
    }
    
    func (ST1) si1() {
    }
    
    type SI2 interface {
    	si2()
    }
    type ST2 struct {
    }
    
    func (ST2) si2() {
    }
    
    type SI3 interface {
    	si3()
    }
    type ST3 struct {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/arm64/doc.go

    Special Cases.
    
    (1) Argument order is the same as in the GNU ARM64 syntax: cbz, cbnz and some store instructions,
    such as str, stur, strb, sturb, strh, sturh stlr, stlrb. stlrh, st1.
    
    Examples:
    
    	MOVD R29, 384(R19)    <=>    str x29, [x19,#384]
    	MOVB.P R30, 30(R4)    <=>    strb w30, [x4],#30
    	STLRH R21, (R19)      <=>    stlrh w21, [x19]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:21:42 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/query-params-str-validations.md

    ```
    
    由于我们必须用 `Query(default=None)` 替换默认值 `None`,`Query` 的第一个参数同样也是用于定义默认值。
    
    所以:
    
    ```Python
    q: Union[str, None] = Query(default=None)
    ```
    
    ...使得参数可选,等同于:
    
    ```Python
    q: str = None
    ```
    
    但是 `Query` 显式地将其声明为查询参数。
    
    然后,我们可以将更多的参数传递给 `Query`。在本例中,适用于字符串的 `max_length` 参数:
    
    ```Python
    q: Union[str, None] = Query(default=None, max_length=50)
    ```
    
    将会校验数据,在数据无效时展示清晰的错误信息,并在 OpenAPI 模式的*路径操作*中记录该参​​数。
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/query-params-str-validations.md

    ```Python hl_lines="9"
    {!../../../docs_src/query_params_str_validations/tutorial001.py!}
    ```
    
    쿼리 매개변수 `q`는 `Optional[str]` 자료형입니다. 즉, `str` 자료형이지만 `None` 역시 될 수 있음을 뜻하고, 실제로 기본값은 `None`이기 때문에 FastAPI는 이 매개변수가 필수가 아니라는 것을 압니다.
    
    !!! note "참고"
        FastAPI는 `q`의 기본값이 `= None`이기 때문에 필수가 아님을 압니다.
    
        `Optional[str]`에 있는 `Optional`은 FastAPI가 사용하는게 아니지만, 편집기에게 더 나은 지원과 오류 탐지를 제공하게 해줍니다.
    
    ## 추가 검증
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Feb 11 13:48:31 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/compile_mlir_util/mlir-module-serialized-str-attr.mlir

    // RUN: tf-mlir-translate -mlir-tf-mlir-to-str-attr -mlir-print-local-scope %s | FileCheck %s
    
    module attributes {tf.versions = {producer = 888 : i32}} {
      func.func @main(%arg0: tensor<?xi32>) -> tensor<?xi32> {
        %0 = "tf.Identity"(%arg0) : (tensor<?xi32>) -> tensor<?xi32> loc(unknown)
        func.return %0 : tensor<?xi32> loc(unknown)
      } loc(unknown)
    } loc(unknown)
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 24 06:42:46 UTC 2023
    - 672 bytes
    - Viewed (0)
  10. src/slices/iter_test.go

    	s := Collect(testSeq)
    	want := testSeqResult
    	if !Equal(s, want) {
    		t.Errorf("got %v, want %v", s, want)
    	}
    }
    
    var iterTests = [][]string{
    	nil,
    	{"a"},
    	{"a", "b"},
    	{"b", "a"},
    	strs[:],
    }
    
    func TestValuesAppendSeq(t *testing.T) {
    	for _, prefix := range iterTests {
    		for _, s := range iterTests {
    			got := AppendSeq(prefix, Values(s))
    			want := append(prefix, s...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top