Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 38 for substVar (0.18 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/cc/quantization_unit_loc.cc

        const size_t start_index = kQuantizationUnitPrefix.size();
        const size_t end_index = caller_name.rfind(kQuantizationUnitSuffix);
        std::string serialized_proto =
            caller_name.substr(start_index, end_index - start_index).str();
        QuantizationUnitLoc::QuantizationUnit quant_unit;
        if (quant_unit.ParseFromString(serialized_proto)) {
          return quant_unit;
        }
      } else if (isa<FusedLoc>(loc)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/go/types/check_test.go

    			errList = filemap[line]
    		}
    
    		// At least one of the errors in errList should match the current error.
    		indices = indices[:0]
    		for i, want := range errList {
    			pattern, substr := strings.CutPrefix(want.text, " ERROR ")
    			if !substr {
    				var found bool
    				pattern, found = strings.CutPrefix(want.text, " ERRORx ")
    				if !found {
    					panic("unreachable")
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. src/crypto/tls/tls_test.go

    	if err == nil {
    		t.Fatalf("X509KeyPair didn't return an error when arguments were switched")
    	}
    	if subStr := "been switched"; !strings.Contains(err.Error(), subStr) {
    		t.Fatalf("Expected %q in the error when switching arguments to X509KeyPair, but the error was %q", subStr, err)
    	}
    
    	_, err = X509KeyPair([]byte(rsaCertPEM), []byte(rsaCertPEM))
    	if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc

        // Op type is a NameLoc with the ":" suffix.
        StringRef op_type_with_suffix =
            mlir::cast<NameLoc>(locations.front()).getName().strref();
        StringRef op_type =
            op_type_with_suffix.substr(0, op_type_with_suffix.size() - 1);
        new_unit.set_op_type(op_type.str());
    
        if (isa<NameLoc>(locations.back())) {
          StringRef name_loc_id =
              mlir::cast<NameLoc>(locations.back()).getName().strref();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. src/strings/strings_test.go

    }
    
    func TestContains(t *testing.T) {
    	for _, ct := range ContainsTests {
    		if Contains(ct.str, ct.substr) != ct.expected {
    			t.Errorf("Contains(%s, %s) = %v, want %v",
    				ct.str, ct.substr, !ct.expected, ct.expected)
    		}
    	}
    }
    
    var ContainsAnyTests = []struct {
    	str, substr string
    	expected    bool
    }{
    	{"", "", false},
    	{"", "a", false},
    	{"", "abc", false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

        if (!op.getCustomCode().starts_with(kFlexOpNamePrefix)) {
          return failure();
        }
    
        llvm::StringRef tf_op_name =
            op.getCustomCode().substr(kFlexOpNamePrefix.size());
        const std::string tf_op_full_name = llvm::Twine("tf.", tf_op_name).str();
    
        // Create the TF op
        OperationState op_state(op.getLoc(), tf_op_full_name);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. pkg/volume/emptydir/empty_dir_test.go

    		})
    	}
    }
    
    func TestTmpfsMountOptions(t *testing.T) {
    	subQuantity := resource.MustParse("123Ki")
    
    	doesStringArrayContainSubstring := func(strSlice []string, substr string) bool {
    		for _, s := range strSlice {
    			if strings.Contains(s, substr) {
    				return true
    			}
    		}
    		return false
    	}
    
    	testCases := map[string]struct {
    		tmpfsNoswapSupported bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  8. tensorflow/cc/framework/scope.cc

          (*name_map)[name] = 0;
          // Add all name prefixes ('/' separated).
          size_t idx = -1;
          while ((idx = name.find(kScopeSeparator, idx + 1)) != string::npos) {
            (*name_map)[name.substr(0, idx)] = 0;
          }
        }
        // We provide null destructors for these shared ptrs (except for name_map)
        // since the caller owns them and doesn't want the scope to destroy them.
        return Scope(new Scope::Impl(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. src/bytes/bytes_test.go

    	{[]byte(dots + dots + dots), " ", false},
    }
    
    func TestContainsAny(t *testing.T) {
    	for _, ct := range ContainsAnyTests {
    		if ContainsAny(ct.b, ct.substr) != ct.expected {
    			t.Errorf("ContainsAny(%s, %s) = %v, want %v",
    				ct.b, ct.substr, !ct.expected, ct.expected)
    		}
    	}
    }
    
    var ContainsRuneTests = []struct {
    	b        []byte
    	r        rune
    	expected bool
    }{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh

    		$2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE|IOMIN$|IOOPT$|ALIGNOFF$|DISCARD|ROTATIONAL$|ZEROOUT$|GETDISKSEQ$)/ {printf("\t%s = C.%s\n", $2, $2)}
    		$2 ~ /^__WCOREFLAG$/ {next}
    		$2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
    
    		{next}
    	' | sort
    
    	echo ')'
    ) >_const.go
    
    # Pull out the error names for later.
    errors=$(
    	echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 20.2K bytes
    - Viewed (0)
Back to top