Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setUp (0.15 sec)

  1. ci/official/wheel_test/test_import_api_packages.py

      def setUp(self):
        def _get_api_packages_v2():
          api_packages_path = pkg_resources.resource_filename(
              "tensorflow", "_api/v2/api_packages.txt"
          )
    
          logging.info("Load api packages file: %s", api_packages_path)
          with open(api_packages_path) as file:
            return set(file.read().splitlines())
    
        super().setUp()
        self.api_packages_v2 = _get_api_packages_v2()
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 13 15:52:07 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  2. configure.py

      return paths
    
    
    def get_python_major_version(python_bin_path):
      """Get the python major version."""
      return run_shell([python_bin_path, '-c', 'import sys; print(sys.version[0])'])
    
    
    def setup_python(environ_cp):
      """Setup python related env variables."""
      # Get PYTHON_BIN_PATH, default is the current running python.
      default_python_bin_path = sys.executable
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (1)
  3. fastapi/applications.py

            )
    
            self.user_middleware: List[Middleware] = (
                [] if middleware is None else list(middleware)
            )
            self.middleware_stack: Union[ASGIApp, None] = None
            self.setup()
    
        def openapi(self) -> Dict[str, Any]:
            """
            Generate the OpenAPI schema of the application. This is called by FastAPI
            internally.
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
Back to top