Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for str (0.13 sec)

  1. tensorflow/c/env_test.cc

            ::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;
        TF_NewWritableFile(filepath.c_str(), &handle, s);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Dec 10 20:52:48 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_experimental.cc

      const auto& debug_str = graph->graph.ToGraphDefDebug().DebugString();
      *len = debug_str.size();
      char* ret = static_cast<char*>(malloc(*len + 1));
      memcpy(ret, debug_str.c_str(), *len + 1);
      return ret;
    }
    
    char* TF_FunctionDebugString(TF_Function* func, size_t* len) {
      const auto& debug_str = DebugString(func->record->fdef());
      *len = debug_str.size();
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      ops_->copy_file(filesystem_.get(), translated_src.c_str(),
                      translated_target.c_str(), plugin_status.get());
      return StatusFromTF_Status(plugin_status.get());
    }
    
    std::string ModularFileSystem::TranslateName(const std::string& name) const {
      if (ops_->translate_name == nullptr) return FileSystem::TranslateName(name);
    
      char* p = ops_->translate_name(filesystem_.get(), name.c_str());
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_unified_experimental_eager.cc

      auto handle = dyn_cast<ImmediateExecutionTensorHandle>(unwrap(at));
      if (!handle) {
        string msg =
            StrCat("Not an eager tensor handle.", reinterpret_cast<uintptr_t>(at));
        TF_SetStatus(s, TF_INVALID_ARGUMENT, msg.c_str());
        return nullptr;
      }
      return wrap(handle);
    }
    
    TFE_Context* TF_ExecutionContextGetTFEContext(TF_ExecutionContext* ctx,
                                                  TF_Status* s) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jun 25 04:40:46 GMT 2020
    - 3.2K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/gradients/math_grad.cc

        std::string name = "Conj_Exp_Grad";
        TF_RETURN_IF_ERROR(SafeConj(ctx, exp_.get(), &conj_output, name.c_str()));
        AbstractTensorHandlePtr conj_output_releaser(conj_output);
    
        name = "Mul_Exp_Grad";
        TF_RETURN_IF_ERROR(
            Mul(ctx, conj_output, grad_outputs[0], &grad_inputs[0], name.c_str()));
        return absl::OkStatus();
      }
      ~ExpGradientFunction() override {}
    
     private:
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

        if (!metadata) {
          TF_SetStatusFromGCSStatus(metadata.status(), status);
          return;
        }
        TF_VLog(3, "AppendObject: gs://%s/%s to gs://%s/%s", bucket.c_str(),
                temporary_object.c_str(), bucket.c_str(), object.c_str());
        const std::vector<gcs::ComposeSourceObject> source_objects = {
            {object, {}, {}}, {temporary_object, {}, {}}};
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/gradients/nn_grad.cc

        grad_inputs[0]->Ref();
    
        // Grad for bias
        std::string name = "bias_add_grad";
        TF_RETURN_IF_ERROR(BiasAddGrad(ctx, upstream_grad, &grad_inputs[1],
                                       data_format.c_str(), name.c_str()));
    
        return absl::OkStatus();
      }
      ~BiasAddGradientFunction() override {}
    
     private:
      AttrBuilder forward_attrs_;
    };
    
    }  // namespace
    
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_experimental.cc

      for (const auto& op : op_names) {
        op_names_oss << op << ", ";
      }
      const std::string& op_names_str = op_names_oss.str();
      void* data = tensorflow::port::Malloc(op_names_str.length());
      op_names_str.copy(static_cast<char*>(data), op_names_str.length(), 0);
      buf->data = data;
      buf->length = op_names_str.length();
      buf->data_deallocator = [](void* data, size_t length) {
        tensorflow::port::Free(data);
      };
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  9. configure.py

      if len(version_segments) == 2:
        version_segments.append('0')
      for seg in version_segments:
        if not seg.isdigit():
          return None
    
      version_str = ''.join(['%03d' % int(seg) for seg in version_segments])
      return int(version_str)
    
    
    def retrieve_bazel_version():
      """Retrieve installed bazel version (or bazelisk).
    
      Returns:
        The bazel version detected.
      """
    Python
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/grappler/grappler.cc

          reinterpret_cast<const tensorflow::grappler::GrapplerItem*>(item)
              ->NodesToPreserve();
      *num_values = nodes.size();
      *storage_size = 0;
      for (const std::string& str : nodes) {
        *storage_size += str.size();
      }
    }
    
    void TF_GetNodesToPreserveList(const TF_GrapplerItem* item, char** values,
                                   size_t* lengths, int num_values, void* storage,
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
Back to top