Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TFE_OpGetOutputLength (0.2 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device.cc

        // per-device tensors.
        OpPtr op(TFE_NewOp(context, operation_name, status));
        TFE_OpAddAttrs(op.get(), attributes);
        int expected_outputs = TFE_OpGetOutputLength(op.get(), "outputs", status);
        if (TF_GetCode(status) != TF_OK) return result;
        if (expected_outputs != parallel_device.num_underlying_devices()) {
          std::string message(absl::StrCat(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 29 22:05:31 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_test.cc

      // Try to retrieve lengths before building the attributes (should fail)
      EXPECT_EQ(-1, TFE_OpGetInputLength(identityOp, "input", status));
      CHECK_NE(TF_OK, TF_GetCode(status)) << TF_Message(status);
      EXPECT_EQ(-1, TFE_OpGetOutputLength(identityOp, "output", status));
      CHECK_NE(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      TFE_TensorHandle* inputs[] = {input1, input2};
      TFE_OpAddInputList(identityOp, inputs, 2, status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api.h

                                                   TF_Status* status);
    
    // Returns the length (number of tensors) of the output argument `output_name`
    // found in the provided `op`.
    TF_CAPI_EXPORT extern int TFE_OpGetOutputLength(TFE_Op* op,
                                                    const char* output_name,
                                                    TF_Status* status);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 22.8K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api.cc

                                                   TF_Status* status) {
      int ret = -1;
      status->status = tensorflow::unwrap(op)->InputLength(input_name, &ret);
      return ret;
    }
    
    TF_CAPI_EXPORT extern int TFE_OpGetOutputLength(TFE_Op* op,
                                                    const char* output_name,
                                                    TF_Status* status) {
      int ret = -1;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
Back to top