- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for create_tempdir (0.2 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/python/pywrap_quantize_model_test.py
"""Test cases for quantize_model python wrappers.""" def test_quantize_model_fails_when_invalid_quant_options_serialization(self): src_saved_model_path = self.create_tempdir().full_path dst_saved_model_path = self.create_tempdir().full_path signature_def_keys = ['serving_default'] quant_opts_serialized = 'invalid proto serialization string'.encode('utf-8')
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 05 02:09:24 UTC 2024 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/python/testing_test.py
class FileSizeTestCase(test.TestCase): def setUp(self): super().setUp() self.path_a = self.create_tempdir('dir_a').full_path self.create_tempfile(file_path='dir_a/w.txt', content='abcd') self.path_b = self.create_tempdir('dir_b').full_path self.create_tempfile(file_path='dir_b/x.txt', content='1234') self.create_tempfile(file_path='dir_b/y.txt', content='56')
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 08:51:46 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/concurrency_test.py
), 'y': ops.convert_to_tensor( np.random.uniform(size=(10)).astype('f4') ), } root = ModelWithAdd() temp_path = self.create_tempdir().full_path saved_model_save.save( root, temp_path, signatures=root.add.get_concrete_function() ) quantization_options = quant_opts_pb2.QuantizationOptions(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 11 00:47:05 UTC 2023 - 3.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java
/** * Unit test for {@link Files#createTempDir}. * * @author Chris Nokleberg */ @SuppressWarnings("deprecation") // tests of a deprecated method public class FilesCreateTempDirTest extends TestCase { public void testCreateTempDir() throws IOException { if (JAVA_IO_TMPDIR.value().equals("/sdcard")) { assertThrows(IllegalStateException.class, Files::createTempDir); return; }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Oct 06 17:11:11 UTC 2023 - 4.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java
/** * Unit test for {@link Files#createTempDir}. * * @author Chris Nokleberg */ @SuppressWarnings("deprecation") // tests of a deprecated method public class FilesCreateTempDirTest extends TestCase { public void testCreateTempDir() throws IOException { if (JAVA_IO_TMPDIR.value().equals("/sdcard")) { assertThrows(IllegalStateException.class, Files::createTempDir); return; }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Oct 06 17:11:11 UTC 2023 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization_test.cc
#include "tsl/platform/status_matchers.h" namespace tensorflow { namespace { using ::stablehlo::quantization::QuantizationConfig; using ::stablehlo::quantization::io::CreateTmpDir; using ::testing::HasSubstr; using ::tsl::testing::IsOk; using ::tsl::testing::StatusIs; // Test cases for `RunQuantization` mainly tests for error cases because testing
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 11 19:29:56 UTC 2024 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/io_test.cc
absl::StatusOr<std::string> tmp_dir = CreateTmpDir(); ASSERT_THAT(tmp_dir, IsOk()); auto* const env = tsl::Env::Default(); EXPECT_THAT(env->FileExists(*tmp_dir), IsOk()); } TEST(IoTest, CreateTmpDirWhenInvalidPathReturnsInternalError) { TestEnvBrokenFileSystem test_env{}; absl::StatusOr<std::string> tmp_dir = CreateTmpDir(&test_env);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 03:28:15 UTC 2024 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/io.cc
} absl::StatusOr<std::string> CreateTmpDir(tsl::Env* const env) { TF_ASSIGN_OR_RETURN(std::string tmp_dir, GetLocalTmpFileName(env)); if (!env->RecursivelyCreateDir(tmp_dir).ok()) { return absl::InternalError( absl::StrFormat("Failed to create tmp dir: '%s'", tmp_dir)); } return tmp_dir; } absl::StatusOr<std::string> CreateTmpDir() { // The overloaded function uses the default env.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 03:28:15 UTC 2024 - 2.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/IoTestCase.java
} } if (testDir == null) { // testdata resources aren't file:// urls, so create a directory to store them in and then // copy the resources to the filesystem as needed testDir = createTempDir(); } return testDir; } /** Returns the file with the given name under the testdata directory. */ protected final @Nullable File getTestFile(String name) throws IOException {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 31 12:36:13 UTC 2024 - 5.6K bytes - Viewed (0) -
testing/architecture-test/src/test/java/org/gradle/architecture/test/TempDirectoryCreationControlTest.java
.because(RATIONALE); @ArchTest public static final ArchRule forbid_calls_to_guava_Files_createTempDir = classes() .should(not(callMethod(com.google.common.io.Files.class, "createTempDir"))) .because(RATIONALE); @ArchTest public static final ArchRule forbid_illegal_calls_to_File_createTempFile_overload = classes()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4.4K bytes - Viewed (0)