- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 63 for importer (0.13 sec)
-
src/go/types/resolver_test.go
if mode != 0 { panic("mode must be 0") } if imp.importer == nil { imp.importer = importer.Default().(ImporterFrom) imp.imported = make(map[string]bool) } pkg, err := imp.importer.ImportFrom(path, srcDir, mode) if err != nil { return nil, err } imp.imported[path] = true return pkg, nil } func TestResolveIdents(t *testing.T) { testenv.MustHaveGoBuild(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 4.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) -
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) -
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) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.h
// graph transformation logic on Tensorflow graphs before importing to MLIR. It // serves as the source that provides the subgraphs requested by the savedmodel // MLIR importer, and at the same time it allows the implementation of this // class to transform the graph before feeding it to the importer. class SavedModelMLIRImportInput { public: SavedModelMLIRImportInput(const MetaGraphDef* meta_graph_def,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 6.8K bytes - Viewed (0) -
docs/ru/docs/tutorial/debugging.md
uvicorn.run(app, host="0.0.0.0", port=8000) ``` будет запущена. --- Но этого не произойдет, если вы импортируете этот модуль (файл). Таким образом, если у вас есть файл `importer.py` с таким импортом: ```Python from myapp import app # Some more code ``` то автоматическая создаваемая внутри файла `myapp.py` переменная `__name__` будет иметь значение отличающееся от `"__main__"`. Следовательно, строка:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 3.8K bytes - Viewed (0) -
src/go/internal/gcimporter/gcimporter.go
if err == nil { return "", path, fmt.Errorf("can't find import: %q", path) } return "", path, fmt.Errorf("can't find import: %q: %w", path, err) } // Import imports a gc-generated package given its import path and srcDir, adds // the corresponding package object to the packages map, and returns the object. // The packages map must contain all packages already imported.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.h
const std::string& device_type); ~Tf2XlaRewriter(); // Compiles the given Operation with XlaBuilder and imports the generated HLO // via the HLO -> MHLO importer. absl::StatusOr<mhlo::TupleOp> CompileWithHloImporter( tensorflow::OpKernelContext& op_context); // Import the given XlaComputation into the parent module. Returns the given // generated function.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/object_test.go
testenv.MustHaveGoBuild(t) for i, test := range testObjects { t.Run(fmt.Sprint(i), func(t *testing.T) { src := "package p; " + test.src conf := Config{Error: func(error) {}, Importer: defaultImporter(), EnableAlias: test.alias} pkg, err := typecheck(src, &conf, nil) if err != nil { t.Fatalf("%s: %s", src, err) } names := strings.Split(test.obj, ".")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 5.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/universe.go
// This file sets up the universe scope and the unsafe package. package types2 import ( "go/constant" "strings" ) // The Universe scope contains all predeclared objects of Go. // It is the outermost scope of any chain of nested scopes. var Universe *Scope // The Unsafe package is the package returned by an importer // for the import path "unsafe". var Unsafe *Package var ( universeIota Object
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.1K bytes - Viewed (0)