Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 91 for RB (0.02 sec)

  1. tests/test_tutorial/test_request_files/test_tutorial001_02_py310.py

        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 14}
    
    
    @needs_py310
    def test_post_upload_file(tmp_path: Path, client: TestClient):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        with path.open("rb") as file:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. tensorflow/c/tf_tensor_internal.h

      TensorBuffer* root_buffer() override { return this; }
      void FillAllocationDescription(
          tensorflow::AllocationDescription* proto) const override {
        int64_t rb = size();
        proto->set_requested_bytes(rb);
        proto->set_allocator_name(tensorflow::cpu_allocator()->Name());
      }
    
      bool OwnsMemory() const override { return owns_memory_; }
    
     private:
      const size_t len_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 20:38:55 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_request_files/test_tutorial001_02_an.py

        client = TestClient(app)
        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 14}
    
    
    def test_post_upload_file(tmp_path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        client = TestClient(app)
        with path.open("rb") as file:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/ppc64/asm9_gtables.go

    	}
    	out[0] = o0
    }
    
    // lxvpx XTp,RA,RB
    func type_lxvpx(c *ctxt9, p *obj.Prog, t *Optab, out *[5]uint32) {
    	o0 := GenOpcodes[p.As-AXXSETACCZ]
    	o0 |= uint32((p.To.Reg>>5)&0x1) << 21 // TX
    	o0 |= uint32((p.To.Reg>>1)&0xf) << 22 // Tp
    	o0 |= uint32(p.From.Index&0x1f) << 16 // RA
    	o0 |= uint32(p.From.Reg&0x1f) << 11   // RB
    	out[0] = o0
    }
    
    // lxvrwx XT,RA,RB
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 20:18:50 UTC 2022
    - 42.6K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/phases/addons/proxy/proxy.go

    			{
    				Verbs:         []string{"get"},
    				APIGroups:     []string{""},
    				Resources:     []string{"configmaps"},
    				ResourceNames: []string{constants.KubeProxyConfigMap},
    			},
    		},
    	}
    
    	rb := &rbac.RoleBinding{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      KubeProxyConfigMapRoleName,
    			Namespace: metav1.NamespaceSystem,
    		},
    		RoleRef: rbac.RoleRef{
    			APIGroup: rbac.GroupName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 13:23:44 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go

    func xgetbv() (eax, edx uint32) {
    	var a, d uint32
    	gccgoXgetbv(&a, &d)
    	return a, d
    }
    
    // gccgo doesn't build on Darwin, per:
    // https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/gcc.rb#L76
    func darwinSupportsAVX512() bool {
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 795 bytes
    - Viewed (0)
  7. tests/test_datastructures.py

        @app.post("/uploadfile/")
        def create_upload_file(file: UploadFile):
            testing_file_store.append(file)
            return {"filename": file.filename}
    
        client = TestClient(app)
        with path.open("rb") as file:
            response = client.post("/uploadfile/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"filename": "test.txt"}
    
        assert testing_file_store
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Oct 18 12:36:40 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. src/net/mockserver_test.go

    		if perr := parseWriteError(err); perr != nil {
    			ch <- perr
    		}
    		ch <- err
    		return
    	}
    	if n != len(wb) {
    		ch <- fmt.Errorf("wrote %d; want %d", n, len(wb))
    	}
    	rb := make([]byte, len(wb))
    	n, err = c.Read(rb)
    	if err != nil {
    		if perr := parseReadError(err); perr != nil {
    			ch <- perr
    		}
    		ch <- err
    		return
    	}
    	if n != len(wb) {
    		ch <- fmt.Errorf("read %d; want %d", n, len(wb))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. pkg/apis/rbac/helpers_test.go

    // that did not match, reconciliation would incorrectly add duplicate data to the cluster's RBAC policy.
    func TestHelpersRoundTrip(t *testing.T) {
    	rb := rbac.NewRoleBinding("role", "ns").Groups("g").SAs("ns", "sa").Users("u").BindingOrDie()
    	rbcr := rbac.NewRoleBindingForClusterRole("role", "ns").Groups("g").SAs("ns", "sa").Users("u").BindingOrDie()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/ppc64/asm9.go

    			opset(ASRD, r0)
    			opset(ASRDCC, r0)
    			opset(AROTL, r0)
    
    		case ASRAW: /* sraw Rb,Rs,Ra; srawi sh,Rs,Ra */
    			opset(ASRAWCC, r0)
    
    		case AEXTSWSLI:
    			opset(AEXTSWSLICC, r0)
    
    		case ASRAD: /* sraw Rb,Rs,Ra; srawi sh,Rs,Ra */
    			opset(ASRADCC, r0)
    
    		case ASUB: /* SUB Ra,Rb,Rd => subf Rd,ra,rb */
    			opset(ASUB, r0)
    
    			opset(ASUBCC, r0)
    			opset(ASUBV, r0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:55:28 UTC 2024
    - 156.1K bytes
    - Viewed (0)
Back to top