Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 656 for importer (0.44 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/tflite_import_export.h

    #include "tensorflow/compiler/mlir/lite/experimental/tac/tac_importer_exporter.h"
    
    namespace mlir {
    namespace TFL {
    namespace tac {
    // TAC Importer for TFLite.
    // This import to MLIR from tflite file or MLIR
    class TfLiteImporter : public mlir::TFL::tac::TacImporter {
     public:
      // Options for configuring the importer.
      struct Options {
        std::string file_name;
        // Whether the input file is an MLIR not tflite file.
        bool input_mlir = false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_get_ambiguous_import.txt

    stdout '^example.net/m v0.2.0 '
    stdout '^example.net/m/p v1.0.0 '
    
    -- go.mod --
    module example.net/importer
    
    go 1.16
    
    require (
    	example.net/m v0.1.0
    )
    
    replace (
    	example.net/m v0.1.0 => ./m1
    	example.net/m v0.2.0 => ./m2
    	example.net/m/p v1.0.0 => ./p0
    )
    -- importer.go --
    package importer
    import _ "example.net/m/p"
    -- m1/go.mod --
    module example.net/m
    
    go 1.16
    -- m1/p/p.go --
    package p
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/api.go

    	// error found.
    	Error func(err error)
    
    	// An importer is used to import packages referred to from
    	// import declarations.
    	// If the installed importer implements ImporterFrom, the type
    	// checker calls ImportFrom instead of Import.
    	// The type checker reports an error if an importer is needed
    	// but none was installed.
    	Importer Importer
    
    	// If Sizes != nil, it provides the sizing functions for package unsafe.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go

    package facts
    
    import (
    	"go/types"
    
    	"golang.org/x/tools/internal/aliases"
    )
    
    // importMap computes the import map for a package by traversing the
    // entire exported API each of its imports.
    //
    // 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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. src/go/types/issues_test.go

    		_ = obj.Pkg()
    	}
    }
    `
    	// like src0, but also imports go/importer
    	const src1 = `
    package main
    
    import (
    	"go/types"
    	_ "go/importer"
    )
    
    func main() {
    	var info types.Info
    	for _, obj := range info.Uses {
    		_ = obj.Pkg()
    	}
    }
    `
    	// like src1 but with different import order
    	// (used to fail with this issue)
    	const src2 = `
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/common_v1.py

    into a proper TF2 execution mode. This hides that boilerplate.
    """
    
    import tempfile
    from absl import app
    from absl import flags
    from absl import logging
    import tensorflow.compat.v1 as tf
    
    from tensorflow.python import pywrap_mlir  # pylint: disable=g-direct-tensorflow-import
    
    # Use /tmp to make debugging the tests easier (see README.md)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 20 13:19:26 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  7. 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)
  8. 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)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 28 17:58:07 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top