- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 58 for nullptr (0.07 sec)
-
tensorflow/c/eager/c_api.cc
} tensorflow::AbstractTensorInterface* t = tensorflow::unwrap(h)->Resolve(&status->status); if (t == nullptr) { return nullptr; } return new TF_Tensor{t}; } void* TFE_TensorHandleDevicePointer(TFE_TensorHandle* h, TF_Status* status) { if (h == nullptr) { status->status = tensorflow::errors::InvalidArgument("Invalid handle"); return nullptr; }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 43.9K bytes - Viewed (0) -
tensorflow/c/c_api_experimental_test.cc
input_tensors.empty() ? nullptr : const_cast<TF_Tensor**>(input_tensors.data()), /*input_tensors_as_shapes*/ nullptr, /*input_resource_shapes_and_types*/ nullptr, &output_shapes, /*output_resource_shapes_and_types*/ nullptr, status_); CHECK_EQ(TF_OK, TF_GetCode(status_)) << TF_Message(status_);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Tue Jan 17 22:27:52 UTC 2023 - 13.1K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_lib.cc
StatusPtr first_bad_status(nullptr); for (const auto& dt : device_threads_) { StatusPtr async_wait_status(TF_NewStatus()); dt->AsyncWait(async_wait_status.get()); // Prefer non cancelled errors to uncover real failures. if (TF_GetCode(async_wait_status.get()) != TF_OK && (first_bad_status == nullptr || TF_GetCode(first_bad_status.get()) == TF_CANCELLED)) {
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Mon Oct 21 04:14:14 UTC 2024 - 25.9K bytes - Viewed (0) -
tensorflow/c/eager/gradients_test.cc
AbstractContextPtr ctx; { AbstractContext* ctx_raw = nullptr; absl::Status s = BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw); ASSERT_EQ(errors::OK, s.code()) << s.message(); ctx.reset(ctx_raw); } AbstractTensorHandlePtr t; { AbstractTensorHandle* x_raw = nullptr; absl::Status s =
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/c/c_api_experimental.cc
TF_SessionRun(session, /*run_options*/ nullptr, // input related parameters /*inputs*/ &input, /*input_values*/ &tensor, /*ninputs*/ 1, // output related parameters /*outputs*/ nullptr, /*output_values*/ nullptr, /*noutputs*/ 0, /*targets*/ &enqueue_op, /*ntargets*/ 1, /*run_metadata*/ nullptr, status); VLOG(1) << "Enqueuing is done."; }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 29.5K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental.cc
dimvec[i] = static_cast<int64_t>(dims[i]); } if (ctx == nullptr) { status->status = tensorflow::errors::InvalidArgument("Invalid Context"); return nullptr; } tensorflow::AbstractTensorInterface* t = tensorflow::unwrap(ctx)->CreateTensor( static_cast<tensorflow::DataType>(dtype), dimvec); if (t == nullptr) { status->status =
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 35.9K bytes - Viewed (0) -
tensorflow/c/checkpoint_reader.cc
namespace tensorflow { namespace checkpoint { class TensorSliceReader; CheckpointReader::CheckpointReader(const string& filename, TF_Status* status) : reader_(nullptr), v2_reader_(nullptr), var_to_shape_map_(nullptr), var_to_data_type_map_(nullptr) { // Depending on whether this is a V2 ckpt, initializes "reader_" or // "v2_reader_". std::vector<string> v2_path;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 5.6K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test_util.cc
TFE_OpSetDevice(op, device_name.c_str(), status); } if (TF_GetCode(status) != TF_OK) return nullptr; TFE_TensorHandle* var_handle = nullptr; int num_retvals = 1; TFE_Execute(op, &var_handle, &num_retvals, status); if (TF_GetCode(status) != TF_OK) return nullptr; TFE_DeleteOp(op); if (TF_GetCode(status) != TF_OK) return nullptr; CHECK_EQ(1, num_retvals); TF_DeleteStatus(status); return var_handle; }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Feb 21 22:37:46 UTC 2024 - 23.5K bytes - Viewed (0) -
tensorflow/c/eager/dlpack.cc
}; // Gets tensor from eager tensor handle. const Tensor* GetTensorFromHandle(TFE_TensorHandle* h, TF_Status* status) { if (h == nullptr) { status->status = tensorflow::errors::InvalidArgument("Invalid handle"); return nullptr; } tensorflow::TensorHandle* handle = tensorflow::TensorHandleFromInterface(tensorflow::unwrap(h)); if (handle->Type() != TensorHandle::LOCAL) {
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 12.9K bytes - Viewed (0) -
tensorflow/c/c_test_util.cc
output_values_.resize(outputs_.size(), nullptr); const TF_Output* inputs_ptr = inputs_.empty() ? nullptr : &inputs_[0]; TF_Tensor* const* input_values_ptr = input_values_.empty() ? nullptr : &input_values_[0]; const TF_Output* outputs_ptr = outputs_.empty() ? nullptr : &outputs_[0]; TF_Tensor** output_values_ptr = output_values_.empty() ? nullptr : &output_values_[0];
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Fri Oct 15 03:16:52 UTC 2021 - 17.8K bytes - Viewed (0)