- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 40 for str (0.14 sec)
-
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) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_helper.cc
TempFile::TempFile(TempFile&& rhs) : std::fstream(std::move(rhs)), name_(std::move(rhs.name_)) {} TempFile::~TempFile() { std::fstream::close(); std::remove(name_.c_str()); } const std::string TempFile::getName() const { return name_; } bool TempFile::truncate() { std::fstream::close(); std::fstream::open(name_, std::ios::binary | std::ios::out);
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Fri Jun 26 14:56:58 GMT 2020 - 1.3K bytes - Viewed (0) -
tensorflow/c/c_api.cc
out_shape_and_type->set_dtype(p.dtype); *out_shape_and_type->mutable_type() = p.type; } } string str_data; handle_data.SerializeToString(&str_data); TF_Buffer* result = TF_NewBufferFromString(str_data.c_str(), str_data.size()); return result; } void TF_SetHandleShapeAndType(TF_Graph* graph, TF_Output output,
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental.cc
==============================================================================*/ #include "tensorflow/c/eager/c_api_unified_experimental.h" #include <vector> #include "absl/container/flat_hash_map.h" #include "absl/strings/str_cat.h" #include "tensorflow/c/eager/c_api_unified_experimental_internal.h" #include "tensorflow/c/tf_datatype.h" #include "tensorflow/c/tf_status.h" #include "tensorflow/c/tf_status_helper.h"
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 9K bytes - Viewed (0) -
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) -
tensorflow/c/eager/dlpack_test.cc
limitations under the License. ==============================================================================*/ #include "tensorflow/c/eager/dlpack.h" #include <vector> #include "absl/strings/str_join.h" #include "include/dlpack/dlpack.h" // from @dlpack #include "tensorflow/c/eager/c_api.h" #include "tensorflow/core/platform/test.h" namespace tensorflow { namespace {
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Fri Jun 30 03:04:46 GMT 2023 - 4.4K bytes - Viewed (0) -
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) -
tensorflow/c/eager/c_api_remote_test.cc
See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include "absl/strings/str_cat.h" #include "tensorflow/c/eager/c_api.h" #include "tensorflow/c/eager/c_api_experimental.h" #include "tensorflow/c/eager/c_api_internal.h" #include "tensorflow/c/eager/c_api_remote_test_util.h"
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Wed Aug 12 00:14:22 GMT 2020 - 5.4K bytes - Viewed (0) -
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) -
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)