Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 82 for joinData (0.3 sec)

  1. tensorflow/cc/framework/cc_op_gen_test.cc

      const string& tmpdir = testing::TmpDir();
    
      const auto h_file_path = io::JoinPath(tmpdir, "test.h");
      const auto cc_file_path = io::JoinPath(tmpdir, "test.cc");
      const auto internal_h_file_path = io::JoinPath(tmpdir, "test_internal.h");
      const auto internal_cc_file_path = io::JoinPath(tmpdir, "test_internal.cc");
    
      cc_op::WriteCCOps(ops, api_def_map, h_file_path, cc_file_path);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 29 20:04:30 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  2. src/os/tempfile.go

    	if dir == "" {
    		dir = TempDir()
    	}
    
    	prefix, suffix, err := prefixAndSuffix(pattern)
    	if err != nil {
    		return nil, &PathError{Op: "createtemp", Path: pattern, Err: err}
    	}
    	prefix = joinPath(dir, prefix)
    
    	try := 0
    	for {
    		name := prefix + nextRandom() + suffix
    		f, err := OpenFile(name, O_RDWR|O_CREATE|O_EXCL, 0600)
    		if IsExist(err) {
    			if try++; try < 10000 {
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 18:04:39 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/ops/gen/cpp/renderers/include_renderer.cc

      BlankLine();
    }
    
    string IncludeRenderer::SelfHeaderPath() const {
      return io::JoinPath(context_.path_config.tf_root_dir,
                          context_.path_config.tf_output_dir,
                          context_.cpp_config.unit + "_ops.h");
    }
    
    void IncludeRenderer::Include(const string &tf_file_path) {
      CodeLine("#include \"$0\"",
               io::JoinPath(context_.path_config.tf_prefix_dir, tf_file_path));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/ops/gen/cpp/cpp_generator.cc

      return GenerateOneFile(cpp::RendererContext::kSource);
    }
    
    string CppGenerator::HeaderFileName() const {
      return io::JoinPath(path_config_.output_path, cpp_config_.unit + "_ops.h");
    }
    
    string CppGenerator::SourceFileName() const {
      return io::JoinPath(path_config_.output_path, cpp_config_.unit + "_ops.cc");
    }
    
    void CppGenerator::WriteHeaderFile() const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 21 18:51:25 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  5. src/syscall/fs_wasip1_test.go

    		t.Run("", func(t *testing.T) {
    			path := syscall.JoinPath(test.dir, test.file)
    			if path != test.path {
    				t.Errorf("join(%q,%q): want=%q got=%q", test.dir, test.file, test.path, path)
    			}
    		})
    	}
    }
    
    func BenchmarkJoinPath(b *testing.B) {
    	for _, test := range joinPathTests {
    		b.Run("", func(b *testing.B) {
    			for i := 0; i < b.N; i++ {
    				syscall.JoinPath(test.dir, test.file)
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 20:58:35 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. tensorflow/cc/saved_model/bundle_v2_test.cc

          TF_ASSERT_OK(
              bundle->variable_reader()->Lookup(std::get<2>(restored_var), &value));
        }
      }
    };
    
    TEST_F(BundleV2Test, LoadsVarsAndArithmeticObjectGraph) {
      const std::string export_dir = io::JoinPath(
          testing::TensorFlowSrcRoot(), kTestData, "VarsAndArithmeticObjectGraph");
    
      SavedModelV2Bundle bundle;
      TF_ASSERT_OK(SavedModelV2Bundle::Load(export_dir, &bundle));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 12 17:51:15 UTC 2023
    - 6K bytes
    - Viewed (0)
  7. tensorflow/cc/saved_model/reader.cc

                          SavedModel* saved_model_proto) {
      LOG(INFO) << "Reading SavedModel from: " << export_dir;
    
      if (IS_OSS) {
        const std::string saved_model_pb_path =
            io::JoinPath(export_dir, kSavedModelFilenamePb);
        TF_ASSIGN_OR_RETURN(
            bool saved_model_pb_exists,
            internal::FileExists(Env::Default(), saved_model_pb_path));
        if (saved_model_pb_exists) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 00:19:29 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. tensorflow/cc/saved_model/loader.cc

    }
    
    bool MaybeSavedModelDirectory(const string& export_dir) {
      const string saved_model_pb_path =
          io::JoinPath(export_dir, kSavedModelFilenamePb);
      const string saved_model_cpb_path =
          io::JoinPath(export_dir, kSavedModelFilenameCpb);
      const string saved_model_pbtxt_path =
          io::JoinPath(export_dir, kSavedModelFilenamePbTxt);
      return Env::Default()->FileExists(saved_model_pb_path).ok() ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 04:36:00 UTC 2024
    - 23K bytes
    - Viewed (0)
  9. src/go/build/build.go

    	// If OpenFile is nil, Import uses os.Open.
    	OpenFile func(path string) (io.ReadCloser, error)
    }
    
    // joinPath calls ctxt.JoinPath (if not nil) or else filepath.Join.
    func (ctxt *Context) joinPath(elem ...string) string {
    	if f := ctxt.JoinPath; f != nil {
    		return f(elem...)
    	}
    	return filepath.Join(elem...)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      EXPECT_TF_OK(status_);
    
      const std::string file = io::JoinPath(base, "TestFile.csv");
      WriteString(file, "test");
      EXPECT_TF_OK(status_);
    
      const std::string subdir = io::JoinPath(base, "SubDir");
      tf_gcs_filesystem::CreateDir(filesystem_, subdir.c_str(), status_);
      EXPECT_TF_OK(status_);
      const std::string subfile = io::JoinPath(subdir, "TestSubFile.csv");
      WriteString(subfile, "test");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 31 12:04:23 UTC 2020
    - 24.9K bytes
    - Viewed (0)
Back to top