- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 405 for Importer (0.27 sec)
-
src/go/types/mono_test.go
package types_test import ( "errors" "fmt" "go/importer" "go/types" "strings" "testing" ) func checkMono(t *testing.T, body string) error { src := "package x; import `unsafe`; var _ unsafe.Pointer;\n" + body var buf strings.Builder conf := types.Config{ Error: func(err error) { fmt.Fprintln(&buf, err) }, Importer: importer.Default(), } typecheck(src, &conf, nil) if buf.Len() == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 28 17:58:07 UTC 2023 - 2.5K bytes - Viewed (0) -
src/go/types/example_test.go
`, } { files = append(files, mustParse(fset, src)) } // Type-check a package consisting of these files. // Type information for the imported "fmt" package // comes from $GOROOT/pkg/$GOOS_$GOOARCH/fmt.a. conf := types.Config{Importer: importer.Default()} pkg, err := conf.Check("temperature", fset, files, nil) if err != nil { log.Fatal(err) } // Print the tree of scopes.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/importer_test_min_max.cc.mlir
// RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s // This only test the exporter and importer are working without min/max quantization parameters. func.func @main(tensor<40x37xf32>, tensor<40x37xf32>) -> tensor<40x40xf32> { ^bb0(%arg0: tensor<40x37xf32>, %arg1: tensor<40x37xf32>): %cst = arith.constant dense<1.0> : tensor<40xf32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 1.1K bytes - Viewed (0) -
test/fixedbugs/issue15838.go
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test cases for issue #15838, and related failures. // Make sure the importer correctly sets up nodes for // label decls, goto, continue, break, and fallthrough // statements.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 26 00:32:03 UTC 2016 - 370 bytes - Viewed (0) -
src/go/types/eval_test.go
switch gotypesalias.Value() { case "", "1": if strings.Contains(src, "interface{R}.Read") { continue } } files = append(files, file) } conf := Config{Importer: importer.Default()} pkg, err := conf.Check("p", fset, files, nil) if err != nil { t.Fatal(err) } for _, file := range files { for _, group := range file.Comments {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 19:56:15 UTC 2024 - 8.3K bytes - Viewed (0) -
src/go/internal/gccgoimporter/gccgoinstallation.go
paths = append(paths, spath) } paths = append(paths, inst.LibPaths...) return } // Return an importer that searches incpaths followed by the gcc installation's // built-in search paths and the current directory. func (inst *GccgoInstallation) GetImporter(incpaths []string, initmap map[*types.Package]InitData) Importer { return GetImporter(append(append(incpaths, inst.SearchPaths()...), "."), initmap)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 17:49:12 UTC 2022 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/README.md
# SavedModel importer FileCheck tests. ## Debugging tests While debugging tests, the following commands are handy. Run FileCheck test: ``` bazel run :foo.py.test ``` Run just the Python file and look at the output: ``` bazel run :foo ``` Generate saved model to inspect proto: ``` bazel run :foo -- --save_model_path=/tmp/my.saved_model # Inspect /tmp/my.saved_model/saved_model.pb ```
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 02 03:37:19 UTC 2019 - 1.5K bytes - Viewed (0) -
src/runtime/align_test.go
if fileMap[fname] { files = append(files, f) } } // Call go/types to analyze the runtime package. var info types.Info info.Types = map[ast.Expr]types.TypeAndValue{} conf := types.Config{Importer: importer.Default()} _, err = conf.Check("runtime", fset, files, &info) if err != nil { t.Fatalf("typechecking runtime failed: %v", err) } // Analyze all atomic.*64 callsites.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 08 14:52:12 UTC 2023 - 5.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go
// // This is a workaround for the fact that we cannot access the map used // internally by the types.Importer returned by go/importer. The entries // in this map are the packages and objects that may be relevant to the // current analysis unit. // // Packages in the map that are only indirectly imported may be // incomplete (!pkg.Complete()). // // This function scales very poorly with packages' transitive object
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.5K bytes - Viewed (0) -
platforms/documentation/docs/src/samples/writing-tasks/task-with-arguments/README.adoc
NOTE: You can open the samples inside an IDE using the https://www.jetbrains.com/help/idea/gradle.html#gradle_import_project_start[IntelliJ native importer] or https://projects.eclipse.org/projects/tools.buildship[Eclipse Buildship]. This sample shows how to create a plugin with a task that accepts arguments. The plugin is packaged via an included build. ==== include::sample[dir="kotlin",files="build.gradle.kts[];settings.gradle.kts[]"]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1020 bytes - Viewed (0)