Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 197 for importer (0.25 sec)

  1. src/cmd/compile/internal/types2/stdlib_test.go

    // type-checking.
    var printPackageMu sync.Mutex
    
    // typecheckFiles typechecks the given package files.
    func typecheckFiles(path string, filenames []string, importer Importer) (*Package, error) {
    	// Parse package files.
    	var files []*syntax.File
    	for _, filename := range filenames {
    		var errs []error
    		errh := func(err error) { errs = append(errs, err) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. src/go/internal/gcimporter/gcimporter_test.go

    	// the imported package to mark it as complete; effectively marking the
    	// wrong package as complete. By using an "unclean" package path, the
    	// file and package path are different, exposing the problem if present.
    	// The same issue occurs with vendoring.)
    	imports := make(map[string]*types.Package)
    	fset := token.NewFileSet()
    	for i := 0; i < 3; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/python/save_model.py

    from tensorflow.python.framework import importer
    from tensorflow.python.framework import ops
    from tensorflow.python.lib.io import file_io
    from tensorflow.python.saved_model import builder
    from tensorflow.python.saved_model import constants as saved_model_constants
    from tensorflow.python.saved_model import loader_impl as saved_model_loader
    from tensorflow.python.saved_model import tag_constants
    from tensorflow.python.training import saver
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go

    //
    // The defaults honor a Config in a manner compatible with 'go vet'.
    var (
    	makeTypesImporter = func(cfg *Config, fset *token.FileSet) types.Importer {
    		compilerImporter := importer.ForCompiler(fset, cfg.Compiler, func(path string) (io.ReadCloser, error) {
    			// path is a resolved package path, not an import path.
    			file, ok := cfg.PackageFile[path]
    			if !ok {
    				if cfg.Compiler == "gccgo" && cfg.Standard[path] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/import.go

    	importerIsTest            bool
    }
    
    func (e *ImportMissingSumError) Error() string {
    	var importParen string
    	if e.importer != "" {
    		importParen = fmt.Sprintf(" (imported by %s)", e.importer)
    	}
    	var message string
    	if e.found {
    		message = fmt.Sprintf("missing go.sum entry needed to verify package %s%s is provided by exactly one module", e.importPath, importParen)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

        TF_RETURN_IF_ERROR(importer.PrepareConvert(*fbody->graph));
    
        TF_ASSIGN_OR_RETURN(auto func_type, importer.InferLibFunctionType(*fbody));
    
        absl::InlinedVector<OutputTensor, 4> arg_nodes;
        absl::InlinedVector<OutputTensor, 4> ret_nodes;
        absl::InlinedVector<Node*, 4> control_ret_nodes;
        importer.GetArgsAndRetsFromFunctionBody(*fbody, &arg_nodes, &ret_nodes,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  9. 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)
  10. src/go/types/check_test.go

    		for _, err := range errlist {
    			t.Error(err)
    		}
    	}
    
    	// set up typechecker
    	var conf Config
    	*boolFieldAddr(&conf, "_Trace") = manual && testing.Verbose()
    	conf.Importer = importer.Default()
    	conf.Error = func(err error) {
    		if *haltOnError {
    			defer panic(err)
    		}
    		if listErrors {
    			t.Error(err)
    			return
    		}
    		// Ignore secondary error messages starting with "\t";
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top