Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for mkstemp (0.17 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.py

      path_map = {}
      expected_input_key_map = {}
      for signature_key, signature_def in signature_def_map.items():
        # Filepath is the second return value of mkstemp.
        _, path_map[signature_key] = tempfile.mkstemp(
            suffix='.tfrecord', prefix=signature_key
        )
        expected_input_key_map[signature_key] = signature_def.inputs.keys()
    
      return repr_dataset.TfRecordRepresentativeDatasetSaver(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  2. pkg/istio-agent/agent_test.go

    			t.Errorf("%#v.ServiceNode() => Got %s, want %s", node.in, out, node.out)
    		}
    	}
    }
    
    func TestAgent(t *testing.T) {
    	test.SetForTest(t, &version.Info.Version, "version")
    
    	wd := t.TempDir()
    	mktemp := t.TempDir
    	// Normally we call leak checker first. Here we call it after TempDir to avoid the (extremely
    	// rare) race condition of a certificate being written at the same time the cleanup occurs, which
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  3. cluster/images/etcd/Makefile

    export DOCKER_CLI_EXPERIMENTAL := enabled
    # golang version should match the golang version of the official build from https://github.com/etcd-io/etcd/releases.
    GOLANG_VERSION := 1.21.10
    GOARM?=7
    TEMP_DIR:=$(shell mktemp -d)
    
    DOCKERFILE.linux = Dockerfile
    DOCKERFILE.windows = Dockerfile.windows
    DOCKERFILE := ${DOCKERFILE.${OS}}
    
    ifeq ($(ARCH),amd64)
        BASEIMAGE?=registry.k8s.io/build-image/debian-base:bookworm-v1.0.3
    endif
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. hack/lib/etcd.sh

      printf '%s\n' "${@}" | awk -F . '{ printf("%d%03d%03d\n", $1, $2, $3) }'
    }
    
    kube::etcd::start() {
      # validate before running
      kube::etcd::validate
    
      # Start etcd
      ETCD_DIR=${ETCD_DIR:-$(mktemp -d 2>/dev/null || mktemp -d -t test-etcd.XXXXXX)}
      if [[ -d "${ARTIFACTS:-}" ]]; then
        ETCD_LOGFILE="${ARTIFACTS}/etcd.$(uname -n).$(id -un).log.DEBUG.$(date +%Y%m%d-%H%M%S).$$"
      else
        ETCD_LOGFILE=${ETCD_LOGFILE:-"/dev/null"}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 03:36:35 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. hack/update-mocks.sh

    # pick a tempfile path for writing to
    tmp=$(mktemp)
    kube::util::trap_add "rm -f ${tmp:?}" EXIT
    
    git_grep -l -z "${GENERATED_MOCK_FILE_REGEX}" | xargs -0 rm -f
    
    echo 'executing go generate command on below files'
    
    git_grep -l -z "//go:generate mockgen" | while read -r -d $'\0' file; do
      echo "- ${file}"
      temp_file_name="$(kube::realpath "$(mktemp -t "$(basename "$0").XXXXXX")")"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. cni/test/install_cni.go

    ) {
    	wd := env.IstioSrc + "/cni/test"
    	testWorkRootDir := getEnv("TEST_WORK_ROOTDIR", "/tmp")
    
    	tempCNIConfDir := mktemp(testWorkRootDir, "cni-conf-", t)
    	defer rmDir(tempCNIConfDir, t)
    	tempCNIBinDir := mktemp(testWorkRootDir, "cni-bin-", t)
    	defer rmDir(tempCNIBinDir, t)
    	tempK8sSvcAcctDir := mktemp(testWorkRootDir, "kube-svcacct-", t)
    	defer rmDir(tempK8sSvcAcctDir, t)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. .github/workflows/maven_build_itself.yml

          - name: Extract tarball
            shell: bash
            run: |
              set +e
              if [ -f ${{ env.TAR_BALL }} ]; then
                temp_dir=$(mktemp -d)
                tar -xzf ${{ env.TAR_BALL }} -C "$temp_dir" --strip 1
                maven_bin_dir=$temp_dir/bin
                if [ -d $maven_bin_dir ]; then
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jun 03 17:58:28 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. samples/bookinfo/platform/kube/cleanup.sh

          kubectl delete -n "${NAMESPACE}" "$resource";
        done
      done
      kubectl delete -n "${NAMESPACE}" -f "$SCRIPTDIR/bookinfo-versions.yaml" >/dev/null 2>&1
    fi
    
    OUTPUT=$(mktemp)
    export OUTPUT
    echo "Application cleanup may take up to one minute"
    kubectl delete -n "${NAMESPACE}" -f "$SCRIPTDIR/bookinfo.yaml" > "${OUTPUT}" 2>&1
    ret=$?
    function cleanup() {
      rm -f "${OUTPUT}"
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. hack/verify-openapi-docs-urls.sh

    set -o pipefail
    
    KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
    source "${KUBE_ROOT}/hack/lib/init.sh"
    
    SPECROOT="${KUBE_ROOT}/api/openapi-spec"
    SPECV3PATH="${SPECROOT}/v3"
    
    _tmpdir="$(kube::realpath "$(mktemp -d -t "$(basename "$0").XXXXXX")")"
    mkdir -p "${_tmpdir}"
    trap 'rm -rf ${_tmpdir}' EXIT SIGINT
    trap "echo Aborted; exit;" SIGINT SIGTERM
    
    TMP_URLS="${_tmpdir}/docs_urls.txt"
    touch "${TMP_URLS}"
    
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 05:44:44 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. ci/official/utilities/setup_docker.sh

    # The container is not cleaned up automatically! Remove it with:
    # docker rm tf
    if ! docker container inspect tf >/dev/null 2>&1 ; then
      # Pass all existing TFCI_ variables into the Docker container
      env_file=$(mktemp)
      env | grep ^TFCI_ > "$env_file"
      docker run $TFCI_DOCKER_ARGS --name tf -w "$TFCI_GIT_DIR" -itd --rm \
          -v "$TFCI_GIT_DIR:$TFCI_GIT_DIR" \
          --env-file "$env_file" \
          "$TFCI_DOCKER_IMAGE" \
        bash
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 18:22:06 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top