- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 223 for mapvar (0.15 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_save_function_ops_to_main.cc
IRMapping& mapper) { Block& main_body = dst_graph_op.GetBody(); // Take the reference of the main graph's FetchOp to later move to the end. FetchOp main_fetch_op = dst_graph_op.GetFetch(); Block& save_func_body = src_graph_op.GetBody(); for (Operation& op : save_func_body.without_terminator()) { main_body.push_back(op.clone(mapper)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.7K bytes - Viewed (0) -
test/typeparam/map.go
// returning a new slice of the results. func mapper[F, T any](s []F, f func(F) T) []T { r := make([]T, len(s)) for i, v := range s { r[i] = f(v) } return r } func main() { got := mapper([]int{1, 2, 3}, strconv.Itoa) want := []string{"1", "2", "3"} if !reflect.DeepEqual(got, want) { panic(fmt.Sprintf("got %s, want %s", got, want)) } fgot := mapper([]float64{2.5, 2.3, 3.5}, func(f float64) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 885 bytes - Viewed (0) -
pkg/volume/util/hostutil/hostutil_linux_test.go
83 63 0:44 / /var/lib/bar rw,relatime - tmpfs tmpfs rw 227 62 253:0 /var/lib/docker/devicemapper /var/lib/docker/devicemapper rw,relatime - ext4 /dev/mapper/ssd-root rw,seclabel,data=ordered 224 62 253:0 /var/lib/docker/devicemapper/test/shared /var/lib/docker/devicemapper/test/shared rw,relatime master:1 shared:44 - ext4 /dev/mapper/ssd-root rw,seclabel,data=ordered ` tempDir, filename, err := writeFile(successMountInfo) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 14:49:03 UTC 2023 - 8K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/kustomizevisitor.go
package resource import ( "bytes" "sigs.k8s.io/kustomize/api/krusty" "sigs.k8s.io/kustomize/kyaml/filesys" ) // KustomizeVisitor handles kustomization.yaml files. type KustomizeVisitor struct { mapper *mapper schema ContentValidator // Directory expected to contain a kustomization file. dirPath string // File system containing dirPath. fSys filesys.FileSystem // Holds result of kustomize build, retained for tests.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 16:40:28 UTC 2023 - 1.5K bytes - Viewed (0) -
platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/failure/TestFailureMapper.java
return supports(superclass); } } /** * Returns a list of fully qualified class names that this mapper supports. * <p> * See {@link #supports(Class)} for more information. * * @return a list of fully qualified class names that this mapper supports */ protected abstract List<String> getSupportedClassNames(); /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 09 14:48:53 UTC 2024 - 4.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/TaskDefinitionScriptTransformer.java
ArgumentListExpression args = (ArgumentListExpression) target.getArguments(); args.getExpressions().clear(); if (mapArg != null) { args.addExpression(mapArg); } args.addExpression(taskName); for (Expression extraArg : extraArgs) { args.addExpression(extraArg); } return true; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Nov 19 22:17:48 UTC 2019 - 9.1K bytes - Viewed (0) -
src/testing/fstest/mapfs.go
} return n, nil } // A mapDir is a directory fs.File (so also an fs.ReadDirFile) open for reading. type mapDir struct { path string mapFileInfo entry []mapFileInfo offset int } func (d *mapDir) Stat() (fs.FileInfo, error) { return &d.mapFileInfo, nil } func (d *mapDir) Close() error { return nil } func (d *mapDir) Read(b []byte) (int, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.1K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/result.go
func (r *Result) IgnoreErrors(fns ...ErrMatchFunc) *Result { for _, fn := range fns { r.ignoreErrors = append(r.ignoreErrors, utilerrors.Matcher(fn)) } return r } // Mapper returns a copy of the builder's mapper. func (r *Result) Mapper() *mapper { return r.mapper } // Err returns one or more errors (via a util.ErrorList) that occurred prior // to visiting the elements in the visitor. To see all errors including those
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 23:00:24 UTC 2019 - 7.3K bytes - Viewed (0) -
test/typeparam/issue47896.go
func (s *Slice[T]) Add(t *T) { *s = append(*s, t) } type Scanner interface { Scan(...interface{}) error } type Mapper[T any] func(s Scanner, t T) error type Repository[T any] struct { db *sql.DB } func (r *Repository[T]) scan(rows *sql.Rows, m Mapper[*T], c Collection[*T]) error { for rows.Next() { t := new(T) if err := m(rows, t); err != nil { return err } c.Add(t) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.4K bytes - Viewed (0) -
platforms/core-runtime/functional/src/main/java/org/gradle/internal/ExtendedOptional.java
} public <U> Optional<U> map(Function<? super T, ? extends U> mapper) { return delegate.map(mapper); } @SuppressWarnings({"RedundantCast", "unchecked"}) public <U> Optional<U> flatMap(Function<? super T, ? extends Optional<? extends U>> mapper) { return delegate.flatMap((Function<T, Optional<U>>) mapper); } public Optional<T> or(Supplier<? extends Optional<? extends T>> supplier) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:22:02 UTC 2023 - 3.5K bytes - Viewed (0)