- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for null (0.19 sec)
-
tensorflow/c/experimental/gradients/nn_grad.cc
// Grad for Softmax Input TF_RETURN_IF_ERROR(BroadcastMul( ctx, grad_outputs[0], forward_outputs_[1], grad_inputs.subspan(0, 1))); // upstream_grad * local softmax grad // Grad for labels is null grad_inputs[1] = nullptr; return absl::OkStatus(); } ~SparseSoftmaxCrossEntropyWithLogitsGradientFunction() override {} private: vector<AbstractTensorHandle*> forward_outputs_; };
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/c_api.cc
} void TF_SetFullType(TF_Graph* graph, TF_Operation* op, const TF_Buffer* full_type_proto) { using tensorflow::RecordMutation; mutex_lock l(graph->mu); FullTypeDef full_type; full_type.ParseFromArray(full_type_proto->data, full_type_proto->length); *op->node.mutable_def()->mutable_experimental_type() = full_type; RecordMutation(graph, *op, "setting fulltype"); }
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/c_api_experimental.cc
TF_Buffer* ret = TF_NewBuffer(); TF_CHECK_OK(MessageToBuffer(config, ret)); return ret; } TF_Buffer* TF_CreateRunOptions(unsigned char enable_full_trace) { tensorflow::RunOptions options; if (enable_full_trace) { options.set_trace_level(tensorflow::RunOptions::FULL_TRACE); } else { options.set_trace_level(tensorflow::RunOptions::NO_TRACE); } TF_Buffer* ret = TF_NewBuffer();
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/next_pluggable_device/c_api.cc
auto* cc_ctx = reinterpret_cast<tensorflow::OpKernelContext*>(ctx); absl::Status cc_status; if (var_info == nullptr) { cc_status = absl::InvalidArgumentError("TF_VariableInfo is NULL."); status->status = cc_status; return; } if (var_info->var_info.var() == nullptr) { cc_status = absl::InvalidArgumentError( "VariableInfo does not track a resource variable.");
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Tue Jan 09 00:52:04 GMT 2024 - 13.9K bytes - Viewed (1) -
tensorflow/c/eager/gradients_test.cc
{x.get()}, absl::MakeSpan(outputs), /*use_function=*/!std::get<2>(GetParam())); ASSERT_EQ(error::INVALID_ARGUMENT, s.code()); ASSERT_EQ( "Provided null gradient_function for 'Neg'.\nIf the intent is to treat " "this op as non-differentiable consider using RegisterNotDifferentiable " "or NotDifferentiableGradientFunction.", s.message());
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 7K bytes - Viewed (0) -
tensorflow/c/c_api_function.cc
const TF_Function* grad, TF_Status* status) { if (func == nullptr) { status->status = InvalidArgument( "'func' argument to TF_GraphCopyFunction cannot be null"); return; } tensorflow::mutex_lock l(g->mu); status->status = g->graph.AddFunctionDef(func->record->fdef(), func->record->stack_traces());
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 13.6K bytes - Viewed (2) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc
::testing::AssertionResult CompareSubString(int64_t offset, size_t length, absl::string_view result, size_t read) { // Result isn't a null-terminated string so we have to wrap it inside a // `string_view` if (length == read && content_view.substr(offset, length) == absl::string_view(result).substr(0, read))
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Mon Aug 31 12:04:23 GMT 2020 - 24.9K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem.cc
if (undeleted_files == nullptr || undeleted_dirs == nullptr) return errors::FailedPrecondition( "DeleteRecursively must not be called with `undeleted_files` or " "`undeleted_dirs` set to NULL"); if (ops_->delete_recursively == nullptr) return FileSystem::DeleteRecursively(dirname, token, undeleted_files, undeleted_dirs);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Sep 06 19:12:29 GMT 2023 - 23.1K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
TF_SessionOptions* opt = TF_NewSessionOptions(); TF_Status* s = TF_NewStatus(); const char* tags[] = {tensorflow::kSavedModelTagServe}; TF_Graph* graph = TF_NewGraph(); // NULL run_options and meta_graph_def should work. TF_Session* session = TF_LoadSessionFromSavedModel( opt, nullptr, saved_model_dir.c_str(), tags, 1, graph, nullptr, s); EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
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/checkpoint_reader.cc
for (int i = 0; i < entry.slices_size(); ++i) { const auto& slice_proto = entry.slices(i); CHECK(filtered_keys .insert(EncodeTensorNameSlice( string(v2_reader_->key()) /* full var's name */, TensorSlice(slice_proto))) .second); } } // Second pass: adds the entries, ignoring the filtered keys.
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Aug 25 21:29:12 GMT 2023 - 5.5K bytes - Viewed (0)