Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 111 for x_data (0.1 sec)

  1. tensorflow/cc/framework/gradient_checker.cc

          Tensor y_data = (*y_datas)[y_idx];
          if (y_data.SharesBufferWith((*x_datas)[x_idx])) {
            // Create copies of outputs that share a buffer with any inputs since
            // the underlying buffer of the input Tensors are not copied for some
            // operations (i.e. Identity), which can lead to incorrect results for
            // the centered difference calculation.
            (*y_datas)[y_idx] = tensor::DeepCopy(y_data);
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. tensorflow/cc/gradients/math_grad_test.cc

        TF_ASSERT_OK(scope_.status());
        DataType x_type = DataTypeToEnum<X_T>::v();
        TensorShape shape({2, 3, 2});
        auto x = Placeholder(scope_, x_type, Placeholder::Shape(shape));
        Tensor x_data(x_type, shape);
        auto x_data_flat = x_data.flat<X_T>();
        for (int i = 0; i < x_data_flat.size(); ++i) {
          x_data_flat(i) = x_fn(i);
        }
    
        Output y;
        switch (op_type) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/data.go

    	data[len(prefix)+1] = 0
    	if ctxt.Arch.ByteOrder == binary.BigEndian {
    		data[len(prefix)+1] = 1
    	}
    	data[len(prefix)+1] |= 2 // signals new pointer-free format
    	data = appendString(data, strdata["runtime.buildVersion"])
    	data = appendString(data, strdata["runtime.modinfo"])
    	// MacOS linker gets very upset if the size os not a multiple of alignment.
    	for len(data)%16 != 0 {
    		data = append(data, 0)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (1)
  4. src/cmd/link/internal/ld/seh.go

    		s.SetAlign(4)
    		return s
    	}
    	pdata := mkSecSym(".pdata", sym.SSEHSECT)
    	xdata := mkSecSym(".xdata", sym.SSEHSECT)
    	// The .xdata entries have very low cardinality
    	// as it only contains frame pointer operations,
    	// which are very similar across functions.
    	// These are referenced by .pdata entries using
    	// an RVA, so it is possible, and binary-size wise,
    	// to deduplicate .xdata entries.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_perm.txt

    go list ./...
    ! stdout _data
    
    # skip in conditions where chmod 0 may not work.
    # plan9 should be fine, but copied from list_perm.txt unchanged.
    [root] skip
    [GOOS:windows] skip
    [GOOS:plan9] skip
    
    # go list should work with unreadable _data directory.
    chmod 0 _data
    go list ./...
    ! stdout _data
    
    -- go.mod --
    module m
    
    -- x.go --
    package m
    
    -- _data/x.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 412 bytes
    - Viewed (0)
  6. src/cmd/link/internal/loadpe/seh.go

    	case sys.AMD64:
    		ldr.SetAttrReachable(pdata, true)
    		if xdata != 0 {
    			ldr.SetAttrReachable(xdata, true)
    		}
    		return processSEHAMD64(ldr, pdata)
    	default:
    		// TODO: support SEH on other architectures.
    		return fmt.Errorf("unsupported architecture for SEH: %v", arch.Family)
    	}
    }
    
    func processSEHAMD64(ldr *loader.Loader, pdata sym.LoaderSym) error {
    	// The following loop traverses a list of pdata entries,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 16:20:28 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  7. src/cmd/internal/objfile/macho.go

    			sect := f.macho.Sections[s.Sect-1]
    			switch sect.Seg {
    			case "__TEXT", "__DATA_CONST":
    				sym.Code = 'R'
    			case "__DATA":
    				sym.Code = 'D'
    			}
    			switch sect.Seg + " " + sect.Name {
    			case "__TEXT __text":
    				sym.Code = 'T'
    			case "__DATA __bss", "__DATA __noptrbss":
    				sym.Code = 'B'
    			}
    		}
    		syms = append(syms, sym)
    	}
    
    	return syms, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/testdata/gen/arithBoundaryGen.go

    			fd := tmplData{o.name, s.name, o.symbol}
    			err = testFunc.Execute(w, fd)
    			if err != nil {
    				panic(err)
    			}
    		}
    	}
    
    	// generate the test data
    	for _, s := range szs {
    		if len(s.u) > 0 {
    			fmt.Fprintf(w, "var %s_data []utd%s = []utd%s{", s.name, s.sn, s.sn)
    			for _, i := range s.u {
    				for _, j := range s.u {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  9. istioctl/pkg/multicluster/remote_secret_test.go

    	return sa
    }
    
    func makeSecret(name, caData, token string) *v1.Secret {
    	out := &v1.Secret{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:        name,
    			Namespace:   testNamespace,
    			Annotations: map[string]string{v1.ServiceAccountNameKey: testServiceAccountName},
    		},
    		Data: map[string][]byte{},
    		Type: v1.SecretTypeServiceAccountToken,
    	}
    	if len(caData) > 0 {
    		out.Data[v1.ServiceAccountRootCAKey] = []byte(caData)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 20.6K bytes
    - Viewed (0)
  10. src/time/tzdata/tzdata.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package tzdata provides an embedded copy of the timezone database.
    // If this package is imported anywhere in the program, then if
    // the time package cannot find tzdata files on the system,
    // it will use this embedded information.
    //
    // Importing this package will increase the size of a program by about
    // 450 KB.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 22:30:53 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top