Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 2,195 for SplitV (0.14 sec)

  1. tensorflow/c/c_api_function_test.cc

       *                    v
       */
      // Define
      TF_Operation* feed = Placeholder(func_graph_, s_);
      TF_Operation* split = Split3(feed, func_graph_, s_);
      TF_Operation* add = Add({split, 0}, {split, 2}, func_graph_, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      DefineT(1, {add}, {{split, 0}, {split, 2}}, {{add, 0}}, {});
    
      // Use, run, and verify
      TF_Operation* two = ScalarConst(2, host_graph_, s_, "two");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
  2. pkg/util/procfs/procfs_linux.go

    )
    
    // ProcFS provides a helper for getting container name via pid.
    type ProcFS struct{}
    
    func containerNameFromProcCgroup(content string) (string, error) {
    	lines := strings.Split(content, "\n")
    	for _, line := range lines {
    		entries := strings.SplitN(line, ":", 3)
    		if len(entries) == 3 && entries[1] == "devices" {
    			return strings.TrimSpace(entries[2]), nil
    		}
    	}
    	return "", fmt.Errorf("could not find devices cgroup location")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 09:22:35 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/manipulate_model_attr.cc

      for (auto& named_attr : entry_func_attrs) {
        if (named_attr.getName() != "inputs") continue;
    
        // Splits the "inputs" field to retrieve individual input names. Ignores
        // empty strings.
        SmallVector<StringRef> inputs_attrs{};
        cast<StringAttr>(named_attr.getValue())
            .strref()
            .split(inputs_attrs, /*Separator=*/',', /*MaxSplit=*/-1,
                   /*KeepEmpty=*/false);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 01:13:26 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. cmd/admin-server-info.go

    	}
    	for _, v := range os.Environ() {
    		if !strings.HasPrefix(v, "MINIO") && !strings.HasPrefix(v, "_MINIO") {
    			continue
    		}
    		split := strings.SplitN(v, "=", 2)
    		key := split[0]
    		value := ""
    		if len(split) > 1 {
    			value = split[1]
    		}
    
    		// Do not send sensitive creds.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/util/label/label.go

    	}
    	if len(networkID) > 0 {
    		out[label.TopologyNetwork.Name] = networkID.String()
    	}
    	return out
    }
    
    // SplitLocalityLabel splits a locality label into region, zone and subzone strings.
    func SplitLocalityLabel(locality string) (region, zone, subzone string) {
    	items := strings.Split(locality, "/")
    	switch len(items) {
    	case 1:
    		return items[0], "", ""
    	case 2:
    		return items[0], items[1], ""
    	default:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 11 03:56:40 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. plugin/pkg/auth/authorizer/rbac/rbac_test.go

    			Name:     roleName,
    		},
    	}
    
    	r.Subjects = make([]rbacv1.Subject, len(subjects))
    	for i, subject := range subjects {
    		split := strings.SplitN(subject, ":", 2)
    		r.Subjects[i].Kind, r.Subjects[i].Name = split[0], split[1]
    
    		switch r.Subjects[i].Kind {
    		case rbacv1.ServiceAccountKind:
    			r.Subjects[i].APIGroup = ""
    		case rbacv1.UserKind, rbacv1.GroupKind:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 21.1K bytes
    - Viewed (0)
  7. src/math/fma.go

    	// x and y are finite, but z is infinite, should always result in z.
    	if bz&uvinf == uvinf {
    		return z
    	}
    
    	// Inputs are (sub)normal.
    	// Split x, y, z into sign, exponent, mantissa.
    	xs, xe, xm := split(bx)
    	ys, ye, ym := split(by)
    	zs, ze, zm := split(bz)
    
    	// Compute product p = x*y as sign, exponent, two-word mantissa.
    	// Start with exponent. "is normal" bit isn't subtracted yet.
    	pe := xe + ye - bias + 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 05 22:05:30 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. cmd/signature-v2.go

    	// Authorization = "AWS" + " " + AWSAccessKeyId + ":" + Signature
    	authFields := strings.Split(r.Header.Get(xhttp.Authorization), " ")
    	if len(authFields) != 2 {
    		return auth.Credentials{}, false, ErrMissingFields
    	}
    
    	// Then will be splitting on ":", this will separate `AWSAccessKeyId` and `Signature` string.
    	keySignFields := strings.Split(strings.TrimSpace(authFields[1]), ":")
    	if len(keySignFields) != 2 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/util/internal/ArgumentsSplitter.java

     * limitations under the License.
     */
    
    package org.gradle.util.internal;
    
    import java.util.ArrayList;
    import java.util.List;
    
    public class ArgumentsSplitter {
    
        /**
         * Splits the arguments string (for example, a program command line) into a collection.
         * Only supports space-delimited and/or quoted command line arguments. This currently does not handle escaping characters such as quotes.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 02 16:56:13 UTC 2016
    - 2.2K bytes
    - Viewed (0)
  10. pkg/config/analysis/analyzers/util/hosts.go

    package util
    
    import (
    	"strings"
    
    	"istio.io/istio/pkg/config/resource"
    )
    
    type ScopedFqdn string
    
    // GetScopeAndFqdn splits ScopedFqdn back to scope namespace and fqdn parts
    func (s ScopedFqdn) GetScopeAndFqdn() (string, string) {
    	parts := strings.SplitN(string(s), "/", 2)
    	return parts[0], parts[1]
    }
    
    // InScopeOf returns true if ns is in the scope of ScopedFqdn
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 28 04:57:33 UTC 2022
    - 2.9K bytes
    - Viewed (0)
Back to top