- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for nullptr (0.07 sec)
-
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/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_unified_experimental_eager.cc
TF_ExecutionContext* TF_NewEagerExecutionContext(TFE_ContextOptions* options, TF_Status* s) { TFE_Context* c_ctx = TFE_NewContext(options, s); if (TF_GetCode(s) != TF_OK) { return nullptr; } return wrap(static_cast<AbstractContext*>(unwrap(c_ctx))); } TF_AbstractTensor* TF_CreateAbstractTensorFromEagerTensor(TFE_TensorHandle* t, TF_Status* s) {
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Jun 25 04:40:46 UTC 2020 - 3.2K bytes - Viewed (0) -
tensorflow/c/eager/c_api_remote_test_util.cc
} auto* h1_task2 = TFE_TensorHandleCopyToDevice(h1_task0, ctx, task2_name, status); ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status); TFE_TensorHandle* packed_handle = nullptr; if (has_packed_input) { int num_replicas = 1; std::vector<TFE_TensorHandle*> packed_handles = {h1_task2}; packed_handle = TFE_CreatePackedTensorHandle(ctx, packed_handles.data(),
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Fri Dec 11 22:56:03 UTC 2020 - 9.1K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental.cc
if (default_factory) { return default_factory(fn_name, s); } tsl::Set_TF_Status_from_Status( s, errors::FailedPrecondition("default_factory is nullptr")); return nullptr; } } // end namespace tracing } // end namespace tensorflow // ============================================================================= // Public C API entry points //
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 9K bytes - Viewed (0) -
tensorflow/c/eager/c_api_debug.cc
const tensorflow::Tensor* tensor; status->status = handle->Tensor(&tensor); if (!status->status.ok()) { return nullptr; } std::vector<int64_t> dev_dims = TensorShapeAsVector(*handle, &status->status); if (!status->status.ok()) { return nullptr; } return new TFE_TensorDebugInfo(dev_dims); } TF_CAPI_EXPORT extern void TFE_DeleteTensorDebugInfo(
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 2.5K bytes - Viewed (0) -
tensorflow/c/eager/gradient_checker.cc
AbstractTensorHandlePtr sum_dims; { vector<int32_t> vals(num_dims_out); int64_t vals_shape[] = {num_dims_out}; Range(&vals, 0, num_dims_out); AbstractTensorHandle* sum_dims_raw = nullptr; TF_RETURN_IF_ERROR(TestTensorHandleWithDims<int32_t, TF_INT32>( ctx, vals.data(), vals_shape, 1, &sum_dims_raw)); sum_dims.reset(sum_dims_raw); } // Reduce sum the output on all dimensions.
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 7.3K bytes - Viewed (0) -
tensorflow/c/eager/gradient_checker_test.cc
AbstractTensorHandlePtr x; { AbstractTensorHandle* x_raw = nullptr; absl::Status s = TestScalarTensorHandle<float, TF_FLOAT>(ctx_.get(), 2.0f, &x_raw); ASSERT_EQ(errors::OK, s.code()) << s.message(); x.reset(x_raw); } AbstractTensorHandlePtr y; { AbstractTensorHandle* y_raw = nullptr; absl::Status s =
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 6.5K bytes - Viewed (0) -
tensorflow/c/eager/gradients.h
// gradients. // // `ZerosLike` is not expected to be called and returns a nullptr. The creation // of default zeros grads is handled by the `DefaultGradientFunction` registered // for each op. // TODO(srbs): We need to define `ZerosLike` here to keep the compiler happy. // Figure out a way to avoid this. // TODO(srbs): Should ZerosLike check-fail instead of returning nullptr? class TapeTensor { public:
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 6.9K bytes - Viewed (0) -
tensorflow/c/eager/abstract_context.h
private: const AbstractContextKind kind_; }; namespace internal { struct AbstractContextDeleter { void operator()(AbstractContext* p) const { if (p != nullptr) { p->Release(); } } }; } // namespace internal using AbstractContextPtr = std::unique_ptr<AbstractContext, internal::AbstractContextDeleter>; } // namespace tensorflow
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 3K bytes - Viewed (0)