- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for it (0.15 sec)
-
tensorflow/c/c_api.cc
auto attrs = oper->node.attrs(); int count = 0; AttrValueMap::const_iterator it; for (it = attrs.begin(); it != attrs.end(); it++) { if (count == i) { strncpy(output, it->first.c_str(), it->first.length()); status->status = absl::OkStatus(); return; } count++; } status->status = OutOfRange("Operation only has ", count,
C++ - Registered: Tue Apr 30 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
void TF_SetTracingImplementation(const char* name, TF_Status* s) { tsl::Set_TF_Status_from_Status(s, SetDefaultTracingEngine(name)); } // Creates a new TensorFlow function, it is an execution context attached to a // given tracing context. TF_ExecutionContext* TF_CreateFunction(const char* fn_name, TF_Status* s) { return wrap(CreateTracingExecutionContext(fn_name, s)); }
C++ - Registered: Tue Apr 30 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
if (!status->status.ok()) { TF_DeleteCheckpointReader(reader); return nullptr; } const auto& m = reader->GetVariableToDataTypeMap(); for (auto it = m.begin(); it != m.end(); ++it) reader->variable_list.push_back(it->first); std::sort(reader->variable_list.begin(), reader->variable_list.end()); return reader; } void TF_DeleteCheckpointReader(TF_CheckpointReader* reader) { delete reader; }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 29.4K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc
} PosixFile; static void Cleanup(TF_RandomAccessFile* file) { auto posix_file = static_cast<PosixFile*>(file->plugin_file); close(posix_file->fd); // This would be safe to free using `free` directly as it is only opaque. // However, it is better to be consistent everywhere. plugin_memory_free(const_cast<char*>(posix_file->filename)); delete posix_file; } static int64_t Read(const TF_RandomAccessFile* file, uint64_t offset, size_t n,
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Sun Mar 24 20:08:23 GMT 2024 - 15.8K bytes - Viewed (0) -
tensorflow/c/eager/c_api_cluster_test.cc
TFE_ExecutorWaitForAllPendingNodes(executor, status); ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TFE_DeleteExecutor(executor); TF_DeleteStatus(status); } // Read the value of variable `var` and save it into `out_value`. void ReadVariable(TFE_Context* ctx, TFE_TensorHandle* var, TFE_TensorHandle** out_value) { TF_Status* status = TF_NewStatus(); TFE_Op* op = TFE_NewOp(ctx, "ReadVariableOp", status);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Apr 14 10:03:59 GMT 2023 - 19.3K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/nn_grad_test.cc
// Although, `ops::SparseSoftmaxCrossEntropyWithLogits` returns 2 tensors, the // second tensor isn't needed for computing gradient so we could safely drop // it. outputs[0] = loss; backprop->Unref(); return absl::OkStatus(); } Status BiasAddModel(AbstractContext* ctx, absl::Span<AbstractTensorHandle* const> inputs,
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Feb 28 13:53:47 GMT 2024 - 8.3K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
// Import it in a fresh graph. TF_DeleteGraph(graph); graph = TF_NewGraph(); TF_ImportGraphDefOptions* opts = TF_NewImportGraphDefOptions(); TF_GraphImportGraphDef(graph, graph_def, opts, s); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); TF_Operation* scalar = TF_GraphOperationByName(graph, "scalar"); // Import it in a fresh graph with an unused input mapping.
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 96.9K bytes - Viewed (3) -
tensorflow/c/eager/c_api_test.cc
} else { // In sync mode, forwarding can't really happen since the client code will // have a reference count on the input tensor while the kernel is being // executed and thus it cannot be re-used for the return tensor. EXPECT_NE(orig_ptr, TF_TensorData(t)); } } ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TFE_DeleteTensorHandle(m);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 20:50:20 GMT 2023 - 94.6K bytes - Viewed (1) -
tensorflow/c/eager/c_api_unified_experimental_test.cc
// Finalize the function by providing the returned values. TF_AbstractFunction* func; { // We want to return the output of both add operations, create a new list // and populate it. TF_OutputList* func_outputs = TF_NewOutputList(); TF_OutputListPushBack(func_outputs, add_output1, s); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); TF_OutputListPushBack(func_outputs, add_output2, s);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri May 19 21:44:52 GMT 2023 - 39.1K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem_test.cc
// don't want to have a `std::vector<std::string>` at global level, we use a // static pointer to such a vector: we construct it via `SchemeVector()` below // and when tests are instantiated we process it using `GetSchemes()`. static std::vector<std::string>* SchemeVector() { static std::vector<std::string>* schemes = new std::vector<std::string>; return schemes; }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri May 27 20:25:58 GMT 2022 - 71K bytes - Viewed (0)