Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 127 for as_str (0.12 sec)

  1. tensorflow/cc/saved_model/testdata/generate_chunked_models.py

    
    def generate_chunked_model(non_chunked_dir: str, chunked_dir: str):
      saved_model = loader_impl.parse_saved_model(non_chunked_dir)
      prefix = file_io.join(compat.as_str(chunked_dir), "saved_model")
      file_io.write_string_to_file(f"{prefix}.pbtxt", str(saved_model))
      proto_splitter.SavedModelSplitter(saved_model).write(prefix)
    
    
    def main(argv: Sequence[str]) -> None:
      if len(argv) > 1:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 21:43:11 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/inline/inlheur/testdata/props/calls.go

    // callsite: calls.go:103:9|0 flagstr "" flagval 0 score 2 mask 0 maskstr ""
    // callsite: calls.go:112:9|1 flagstr "" flagval 0 score 2 mask 0 maskstr ""
    // callsite: calls.go:115:9|2 flagstr "" flagval 0 score 2 mask 0 maskstr ""
    // callsite: calls.go:119:12|3 flagstr "CallSiteOnPanicPath" flagval 2 score 102 mask 1 maskstr "panicPathAdj"
    // <endcallsites>
    // <endfuncpreamble>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/inline/inlheur/testdata/props/returns2.go

    // callsite: returns2.go:44:20|1 flagstr "" flagval 0 score -23 mask 8192 maskstr "returnFeedsInlinableFuncToIndCallAdj"
    // <endcallsites>
    // <endfuncpreamble>
    func T_returned_inlinable_func_feeds_indirect_call(q int) {
    	f := returnsFunc(10)
    	f(q)
    	f2 := returnsFunc2()
    	f2(q)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:01 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. src/debug/pe/symbols_test.go

    import (
    	"fmt"
    	"testing"
    )
    
    type testpoint struct {
    	name   string
    	ok     bool
    	err    string
    	auxstr string
    }
    
    func TestReadCOFFSymbolAuxInfo(t *testing.T) {
    	testpoints := map[int]testpoint{
    		39: testpoint{
    			name:   ".rdata$.refptr.__native_startup_lock",
    			ok:     true,
    			auxstr: "{Size:8 NumRelocs:1 NumLineNumbers:0 Checksum:0 SecNum:16 Selection:2 _:[0 0 0]}",
    		},
    		81: testpoint{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 06 18:07:48 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/audit/format.go

    	groups := "<none>"
    	if len(ev.User.Username) > 0 {
    		username = ev.User.Username
    		if len(ev.User.Groups) > 0 {
    			groups = auditStringSlice(ev.User.Groups)
    		}
    	}
    	asuser := "<self>"
    	asgroups := "<lookup>"
    	if ev.ImpersonatedUser != nil {
    		asuser = ev.ImpersonatedUser.Username
    		if ev.ImpersonatedUser.Groups != nil {
    			asgroups = auditStringSlice(ev.ImpersonatedUser.Groups)
    		}
    	}
    
    	namespace := "<none>"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 25 12:23:51 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  6. src/internal/bytealg/bytealg.go

    // If MaxLen is not 0, make sure MaxLen >= 4.
    var MaxLen int
    
    // PrimeRK is the prime base used in Rabin-Karp algorithm.
    const PrimeRK = 16777619
    
    // HashStr returns the hash and the appropriate multiplicative
    // factor for use in Rabin-Karp algorithm.
    func HashStr[T string | []byte](sep T) (uint32, uint32) {
    	hash := uint32(0)
    	for i := 0; i < len(sep); i++ {
    		hash = hash*PrimeRK + uint32(sep[i])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 19:51:15 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

                                          loc.loc.col_offset)
        else:
          return 'loc(unknown)'
    
      def _emit_with_loc(self, op_str, node=None):
        """Emit the mlir operation with the location associated with the node.
    
        Args:
          op_str: The mlir operation string to be emitted.
          node: The node of the AST tree, the mlir operation translated from.
        """
        loc = ''
        if node:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/compile/internal/inline/inlheur/testdata/props/acrosscall.go

    // <endcallsites>
    // <endfuncpreamble>
    func T_feeds_if_via_call(x int) {
    	feedsif(x)
    }
    
    // acrosscall.go T_feeds_if_via_call_conditional 69 0 1
    // ParamFlags
    //   0 ParamMayFeedIfOrSwitch
    // <endpropsdump>
    // {"Flags":0,"ParamFlags":[64],"ResultFlags":null}
    // callsite: acrosscall.go:71:10|0 flagstr "" flagval 0 score 8 mask 0 maskstr ""
    // <endcallsites>
    // <endfuncpreamble>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  10. src/net/conf_test.go

    				netCgo:    true,
    			},
    			resolv: defaultResolvConf,
    			nss:    nssStr(t, "foo: bar"),
    			hostTests: []nssHostTest{
    				{"foo.local", "myhostname", hostLookupCgo},
    				{"google.com", "myhostname", hostLookupCgo},
    			},
    		},
    		{
    			name: "netgo_dns_before_files",
    			c: &conf{
    				netGo: true,
    			},
    			resolv: defaultResolvConf,
    			nss:    nssStr(t, "hosts: dns files"),
    			hostTests: []nssHostTest{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:46:36 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top