- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for TFE_OpSetAttrInt (0.22 sec)
-
tensorflow/c/eager/c_api_test_util.cc
CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TF_DeleteStatus(status); TFE_OpSetAttrType(op, "T", TFE_TensorHandleDataType(in)); TFE_OpSetAttrInt(op, "group_size", group_size); TFE_OpSetAttrInt(op, "group_key", 123); TFE_OpSetAttrInt(op, "instance_key", 456); TFE_OpSetAttrString(op, "merge_op", "Add", 3); TFE_OpSetAttrString(op, "final_op", "Id", 2); std::vector<int64_t> subdiv_offsets;
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Feb 21 22:37:46 GMT 2024 - 23.5K bytes - Viewed (2) -
tensorflow/c/eager/parallel_device/parallel_device_test.cc
TFE_OpSetDevice(op.get(), device, status); if (TF_GetCode(status) != TF_OK) return nullptr; TFE_OpSetAttrType(op.get(), "T", TFE_TensorHandleDataType(input)); TFE_OpSetAttrInt(op.get(), "group_size", group_size); TFE_OpSetAttrInt(op.get(), "group_key", 0); TFE_OpSetAttrInt(op.get(), "instance_key", 0); const std::string merge_op("Add"); TFE_OpSetAttrString(op.get(), "merge_op", merge_op.c_str(),
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 08 23:47:35 GMT 2021 - 29.3K bytes - Viewed (1) -
tensorflow/c/eager/parallel_device/parallel_device_testlib.h
std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> op( TFE_NewOp(context, "TPUReplicatedInput", status), TFE_DeleteOp); if (TF_GetCode(status) != TF_OK) return nullptr; TFE_OpSetAttrInt(op.get(), "N", num_replicas); for (int i = 0; i < num_replicas; ++i) { TFE_OpAddInput(op.get(), components[i], status); if (TF_GetCode(status) != TF_OK) return nullptr; }
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Feb 09 01:12:35 GMT 2021 - 6.9K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_testlib.cc
std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> op( TFE_NewOp(context, "TPUReplicatedOutput", status), TFE_DeleteOp); if (TF_GetCode(status) != TF_OK) return; TFE_OpSetAttrInt(op.get(), "num_replicas", num_replicas); TFE_OpAddInput(op.get(), input, status); if (TF_GetCode(status) != TF_OK) return; const char* device = TFE_TensorHandleDeviceName(input, status);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Jun 15 15:44:44 GMT 2021 - 12.5K bytes - Viewed (0) -
tensorflow/c/eager/c_api.h
const char* attr_name, const void* value, size_t length); TF_CAPI_EXPORT extern void TFE_OpSetAttrInt(TFE_Op* op, const char* attr_name, int64_t value); TF_CAPI_EXPORT extern void TFE_OpSetAttrFloat(TFE_Op* op, const char* attr_name,
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Apr 27 21:07:00 GMT 2023 - 22.8K bytes - Viewed (1) -
tensorflow/c/eager/c_api.cc
auto s = tensorflow::unwrap(op)->SetAttrString( attr_name, static_cast<const char*>(value), length); if (!s.ok()) { LOG(WARNING) << "Unable to set attribute: " << attr_name; } } void TFE_OpSetAttrInt(TFE_Op* op, const char* attr_name, int64_t value) { auto s = tensorflow::unwrap(op)->SetAttrInt(attr_name, value); if (!s.ok()) { LOG(WARNING) << "Unable to set attribute: " << attr_name; } }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Mar 12 20:00:09 GMT 2024 - 43.9K bytes - Viewed (2)