- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TPUReplicatedOutput (0.18 sec)
-
tensorflow/c/eager/parallel_device/parallel_device.h
// TPUReplicatedInput and TPUReplicatedOutput respectively. For example, with // two component devices, running `x = TPUReplicatedInput(inputs=[a, b])` on the // parallel device creates a parallel tensor `x` with `a` on the first of // `underlying_devices` and `b` on the second. Running `a_unpacked, b_unpacked = // TPUReplicatedOutput(input=x, num_replicas=2)` un-packs the parallel tensor // into its components.
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jun 04 21:49:16 GMT 2020 - 2.9K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device.cc
" 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 " "TPUReplicatedOutput to be a parallel tensor (placed on the "
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Mar 29 22:05:31 GMT 2023 - 18.3K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_test.cc
ASSERT_TRUE(TF_GetCode(status.get()) == TF_INVALID_ARGUMENT) << TF_Message(status.get()); } { // Try to pass a non-parallel tensor to TPUReplicatedOutput std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> op( TFE_NewOp(context.get(), "TPUReplicatedOutput", status.get()), TFE_DeleteOp); if (TF_GetCode(status.get()) != TF_OK) return; TFE_OpSetAttrInt(op.get(), "num_replicas", 1);
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.cc
TFE_Context* context, TFE_TensorHandle* input, std::array<TensorHandlePtr, num_replicas>* components, TF_Status* status) { 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;
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)