- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 228 for mkdtemp (0.11 sec)
-
tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/hash_table_asset_v1.py
# CHECK-NEXT: "tf.InitializeTableFromTextFileV2"([[R0]], [[ARG0]]) def write_vocabulary_file(vocabulary): """Write temporary vocab file for module construction.""" tmpdir = tempfile.mkdtemp() vocabulary_file = os.path.join(tmpdir, 'tokens.txt') with tf.io.gfile.GFile(vocabulary_file, 'w') as f: for entry in vocabulary: f.write(entry + '\n') return vocabulary_file def test():
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 31 08:49:35 UTC 2023 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/common.py
if len(argv) > 1: raise app.UsageError('Too many command-line arguments.') if FLAGS.save_model_path: save_model_path = FLAGS.save_model_path else: save_model_path = tempfile.mkdtemp(suffix='.saved_model') save_options = tf.saved_model.SaveOptions(save_debug_info=show_debug_info) tf.saved_model.save( create_module_fn(), save_model_path, options=save_options )
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 02 23:49:27 UTC 2023 - 4K bytes - Viewed (0) -
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) -
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) -
src/text/template/parse/lex_test.go
tLeft, mkItem(itemNumber, "1"), tSpace, mkItem(itemNumber, "02"), tSpace, mkItem(itemNumber, "0x14"), tSpace, mkItem(itemNumber, "0X14"), tSpace, mkItem(itemNumber, "-7.2i"), tSpace, mkItem(itemNumber, "1e3"), tSpace, mkItem(itemNumber, "1E3"), tSpace, mkItem(itemNumber, "+1.2e-4"), tSpace, mkItem(itemNumber, "4.2i"),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 23 15:03:43 UTC 2022 - 13.9K bytes - Viewed (0) -
src/os/tempfile_test.go
_, err := MkdirTemp(tmpDir, tt.pattern) if tt.wantErr { if err == nil { t.Errorf("MkdirTemp(..., %#q) succeeded, expected error", tt.pattern) } if !errors.Is(err, ErrPatternHasSeparator) { t.Errorf("MkdirTemp(..., %#q): %v, expected ErrPatternHasSeparator", tt.pattern, err) } } else if err != nil { t.Errorf("MkdirTemp(..., %#q): %v", tt.pattern, err) } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 19 20:45:37 UTC 2023 - 5.5K bytes - Viewed (0) -
cluster/gce/gci/mounter/stage-upload.sh
MOUNTER_ACI_IMAGE=gci-mounter-${MOUNTER_VERSION}.aci MOUNTER_GCS_DIR=gs://kubernetes-release/gci-mounter/ TMPDIR=/tmp # Setup a working directory DOWNLOAD_DIR=$(mktemp --tmpdir=${TMPDIR} -d gci-mounter-build.XXXXXXXXXX) # Setup a staging directory STAGING_DIR=$(mktemp --tmpdir=${TMPDIR} -d gci-mounter-staging.XXXXXXXXXX) ACI_DIR=${STAGING_DIR}/gci-mounter CWD=${PWD} # Cleanup the temporary directories cleanup() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 23 18:27:20 UTC 2020 - 2.4K bytes - Viewed (0) -
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) -
tests/test_tutorial/test_sql_databases/test_testing_databases_py310.py
@needs_py310 # TODO: pv2 add version with Pydantic v2 @needs_pydanticv1 def test_testing_dbs_py39(tmp_path_factory: pytest.TempPathFactory): tmp_path = tmp_path_factory.mktemp("data") cwd = os.getcwd() os.chdir(tmp_path) test_db = Path("./test.db") if test_db.is_file(): # pragma: nocover test_db.unlink()
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 825 bytes - Viewed (0) -
hack/run-prometheus-on-etcd-scrapes.sh
scrapes_file="$1" if ! [[ -r "$scrapes_file" ]]; then echo "$0: $scrapes_file is not a readable file" >&2 exit 2 fi SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}") CONFIG="/tmp/$(cd /tmp && mktemp config.XXXXXX)" UNPACKDIR="/tmp/$(cd /tmp && mktemp -d unpack.XXXXXX)" SERVER_PID="" cleanup_prom() { rm -f "$CONFIG" rm -rf "$UNPACKDIR" if [[ -n "$SERVER_PID" ]]; then kill "$SERVER_PID" fi }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 08 20:28:05 UTC 2021 - 2.9K bytes - Viewed (0)