Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TF_FinishOperation (0.1 sec)

  1. tensorflow/c/c_api_test.cc

      TF_SetAttrIntList(desc, "v", nullptr, 0);
      auto oper = TF_FinishOperation(desc, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      EXPECT_TF_META("v", 0, TF_ATTR_INT, -1);
    }
    
    TEST_F(CApiAttributesTest, Names) {
      auto desc = init("string");
      TF_SetAttrString(desc, "v", "bunny", 5);
    
      auto oper = TF_FinishOperation(desc, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      TF_OperationDescription* placeholder_desc =
          TF_NewOperation(body.get(), "Placeholder", "Placeholder");
      TF_SetAttrType(placeholder_desc, "dtype", TF_FLOAT);
      TF_Operation* placeholder_op = TF_FinishOperation(placeholder_desc, status);
      if (TF_GetCode(status) != TF_OK) return;
      TF_Output x{placeholder_op, 0};
    
      TF_OperationDescription* reduce_desc =
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Aug 06 23:56:17 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        auto* tf_opdesc = op_.release();
        if (tf_opdesc == nullptr) {
          return errors::InvalidArgument("AbstractOp is incomplete.");
        }
        TF_Status* s = TF_NewStatus();
        auto* operation = TF_FinishOperation(tf_opdesc, s);
        TF_RETURN_IF_ERROR(StatusFromTF_Status(s));
        TF_DeleteStatus(s);
        *num_retvals = TF_OperationNumOutputs(operation);
        for (int i = 0; i < *num_retvals; ++i) {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  4. tensorflow/c/c_api.cc

        } else if (ret != nullptr) {
          desc->graph->graph.RemoveNode(ret);
          ret = nullptr;
        }
      }
    
      delete desc;
    
      return ToOperation(ret);
    }
    
    TF_Operation* TF_FinishOperation(TF_OperationDescription* desc,
                                     TF_Status* status) {
      mutex_lock l(desc->graph->mu);
      return TF_FinishOperationLocked(desc, status);
    }
    
    // TF_Operation functions
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top