Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 82 for joinData (0.3 sec)

  1. tensorflow/c/env_test.cc

        TF_Status* s = TF_NewStatus();
    
        ::tensorflow::string dirpath =
            ::tensorflow::io::JoinPath(tempdir, "somedir");
        TF_CreateDir(dirpath.c_str(), s);
        ASSERT_TF_OK(s) << "TF_CreateDir failed for " << dirpath << ": "
                        << TF_Message(s);
    
        ::tensorflow::string filepath =
            ::tensorflow::io::JoinPath(dirpath, "somefile.txt");
        TF_WritableFileHandle* handle;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Dec 10 20:52:48 UTC 2018
    - 4.2K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/ops/gen/cpp/renderers/guard_renderer.cc

    #include "tensorflow/core/platform/types.h"
    
    namespace tensorflow {
    namespace generator {
    namespace cpp {
    
    GuardRenderer::GuardRenderer(RendererContext context) : Renderer(context) {
      string self_path = io::JoinPath(context_.path_config.tf_root_dir,
                                      context_.path_config.tf_output_dir,
                                      context_.cpp_config.unit + "_ops.h");
      string with_underscores(self_path);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/debugging/dump_tensor_op.cc

        OP_REQUIRES_OK(ctx, ctx->GetAttr("node_name", &node_name));
        OP_REQUIRES_OK(ctx, ctx->env()->RecursivelyCreateDir(log_dir_path));
    
        std::string tensor_data_path = io::JoinPath(log_dir_path, file_name);
        OP_REQUIRES_OK(
            ctx, ctx->env()->NewWritableFile(tensor_data_path, &tensor_data_file_));
    
        // Turn on Zlib compression.
        io::RecordWriterOptions options =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 03:12:17 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op_test.cc

      inputs.emplace_back("max", 0, DT_FLOAT);
      inputs.emplace_back("histogram", 0, DT_INT64);
    
      const std::string dir = testing::TmpDir();
      const std::string output_file_path = io::JoinPath(dir, "statistics.pbtxt");
    
      TF_CHECK_OK(NodeDefBuilder("op", "CalibrationStatisticsSaver")
                      .Input(inputs)
                      .Attr("ids", ids)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 01:31:23 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  5. src/os/file_open_wasip1.go

    	// resolve and capture it here.
    	if filePath[0] != '/' {
    		wd, err := syscall.Getwd()
    		if err != nil {
    			return -1, poll.SysFile{}, err
    		}
    		absPath = joinPath(wd, filePath)
    	}
    	fd, err := syscall.Open(absPath, flag, perm)
    	return fd, poll.SysFile{Path: absPath}, err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 818 bytes
    - Viewed (0)
  6. tensorflow/cc/saved_model/fingerprinting.cc

    using ::tensorflow::protobuf::io::StringOutputStream;
    
    // TODO(b/290063184): remove when USM is GA
    uint64_t HashCheckpointIndexFile(absl::string_view model_dir) {
      std::string meta_filename = MetaFilename(io::JoinPath(
          model_dir, kSavedModelVariablesDirectory, kSavedModelVariablesFilename));
      std::string data;
      absl::Status read_status =
          ReadFileToString(Env::Default(), meta_filename, &data);
      if (read_status.ok()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 26 00:24:44 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc

      }
      std::string tfr_raw_text;
      for (const auto& file : files) {
        string fullpath = io::JoinPath(composite_mlir_dir, file);
        if (env->MatchPath(fullpath, io::JoinPath(composite_mlir_dir, "*.mlir"))) {
          std::string text;
          TF_RETURN_IF_ERROR(ReadFileToString(env, fullpath, &text));
          tfr_raw_text.append(text);
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:34:43 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. src/go/internal/srcimporter/srcimporter.go

    }
    
    func (p *Importer) isAbsPath(path string) bool {
    	if f := p.ctxt.IsAbsPath; f != nil {
    		return f(path)
    	}
    	return filepath.IsAbs(path)
    }
    
    func (p *Importer) joinPath(elem ...string) string {
    	if f := p.ctxt.JoinPath; f != nil {
    		return f(elem...)
    	}
    	return filepath.Join(elem...)
    }
    
    //go:linkname setUsesCgo go/types.srcimporter_setUsesCgo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 18:54:32 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  9. tensorflow/cc/experimental/libexport/save_test.cc

    #include "tensorflow/core/platform/test.h"
    
    namespace tensorflow {
    namespace libexport {
    namespace {
    
    TEST(SaveTest, TestDirectoryStructure) {
      const string base_dir = tensorflow::io::JoinPath(
          tensorflow::testing::TmpDir(), "test_directory_structure");
      TF_ASSERT_OK(Save(base_dir));
      TF_ASSERT_OK(Env::Default()->IsDirectory(base_dir));
    }
    
    }  // namespace
    }  // namespace libexport
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 19 19:11:53 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/saved_model/core/revived_types/asset.cc

                         const std::string& saved_model_dir,
                         const std::string& asset_filename,
                         std::unique_ptr<Asset>* output) {
      std::string abs_path =
          io::JoinPath(saved_model_dir, kSavedModelAssetsDirectory, asset_filename);
      AbstractTensorPtr tensor(ctx->CreateStringScalar(abs_path));
      if (tensor.get() == nullptr) {
        return absl::InternalError(absl::StrCat(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 09 20:11:48 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top