- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for TF_SetStatus (0.06 sec)
-
tensorflow/c/eager/parallel_device/parallel_device_lib.cc
finished_execute_.wait(l); } if (TF_GetCode(status_.get()) != TF_OK) { TF_SetStatus(status, TF_GetCode(status_.get()), TF_Message(status_.get())); // Reset the member `status_` so future op executions (after recovery from // the bad `status`) start with an OK status. TF_SetStatus(status_.get(), TF_OK, ""); } cancellation_manager_ = nullptr;
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/parallel_device/parallel_device.cc
parallel_device.num_underlying_devices(), " outputs for TPUReplicatedOutput, but got ", expected_outputs)); TF_SetStatus(status, TF_INVALID_ARGUMENT, message.c_str()); return result; } if (absl::holds_alternative<TFE_TensorHandle*>(inputs[0])) { TF_SetStatus(status, TF_INVALID_ARGUMENT, "Expected the input to "
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Mon Oct 21 04:14:14 UTC 2024 - 18.3K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc
TFE_OpGetAttrs(read_op.get()), /*expected_max_outputs=*/1, status.get()); ASSERT_FALSE(TF_GetCode(status.get()) == TF_OK); TF_SetStatus(status.get(), TF_OK, ""); // Check that ops still run successfully on the device. parallel_device.Execute(context.get(), std::vector<ParallelTensor*>(),
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Mon Oct 21 04:14:14 UTC 2024 - 15.6K bytes - Viewed (0) -
tensorflow/c/eager/c_api.cc
} // Rest are not supported. if (default_value.list().shape_size() > 0 || default_value.list().func_size() > 0 || default_value.list().tensor_size() > 0) { TF_SetStatus( status, TF_UNIMPLEMENTED, tensorflow::strings::StrCat("Unable to get setfor default value: ", default_value.DebugString()) .data());
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/eager/c_api_test.cc
ASSERT_EQ("Invalid handle", string(TF_Message(status.get()))); TF_SetStatus(status.get(), TF_OK, ""); const char* device_name = TFE_TensorHandleDeviceName(h, status.get()); ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get())); ASSERT_EQ(device_name, nullptr); ASSERT_EQ("Invalid handle", string(TF_Message(status.get()))); TF_SetStatus(status.get(), TF_OK, "");
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 03 20:50:20 UTC 2023 - 94.6K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental.cc
TF_DataType value, TF_Status* s) { Status status = unwrap(op)->SetAttrType(attr_name, static_cast<DataType>(value)); TF_SetStatus(s, static_cast<TF_Code>(status.code()), absl::StatusMessageAsCStr(status)); } void TF_ExecuteOperation(TF_AbstractOp* op, int num_inputs,
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_experimental.cc
if (op_to_reset) { tensorflow::ImmediateExecutionOperation* op = tensorflow::unwrap(op_to_reset); op->Clear(); status->status = op->Reset(op_or_function_name, raw_device_name); } else { TF_SetStatus(status, TF_INVALID_ARGUMENT, "op_to_reset should not be nullptr"); } } void TFE_ContextEnableGraphCollection(TFE_Context* ctx) { tensorflow::unwrap(ctx)->SetShouldStoreGraphs(true); }
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/eager/parallel_device/parallel_device_lib.h
TF_Status* status) const { std::vector<TensorHandlePtr> components; components.reserve(underlying_devices_.size()); if (values.size() != num_underlying_devices()) { TF_SetStatus( status, TF_INVALID_ARGUMENT, "Number of values did not match number of underlying devices."); return nullptr; } TF_DataType datatype_enum(
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Mon Oct 21 04:14:14 UTC 2024 - 13.1K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental_test.cc
ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get())); ASSERT_EQ(device_type, nullptr); ASSERT_EQ("Invalid handle", string(TF_Message(status.get()))); TF_SetStatus(status.get(), TF_OK, ""); int device_id = TFE_TensorHandleDeviceID(h, status.get()); ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get())); ASSERT_EQ(device_id, -1);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 03 03:14:26 UTC 2023 - 31.5K bytes - Viewed (0) -
tensorflow/c/c_api.cc
options->options.config.mutable_experimental() ->set_disable_optimize_for_static_graph(true); } void TF_TensorFromProto(const TF_Buffer* from, TF_Tensor* to, TF_Status* status) { TF_SetStatus(status, TF_OK, ""); tensorflow::TensorProto from_tensor_proto; status->status = BufferToMessage(from, &from_tensor_proto); if (!status->status.ok()) { return; } status->status =
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 102.3K bytes - Viewed (0)