Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_NewAbstractOp (0.28 sec)

  1. tensorflow/c/eager/c_api_unified_experimental_test.cc

      TF_AbstractTensor* at =
          TF_CreateAbstractTensorFromEagerTensor(t, status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      // Build an abstract operation.
      auto* op = TF_NewAbstractOp(ctx);
      TF_AbstractOpSetOpType(op, "Add", status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      // Build inputs and outputs.
      TF_AbstractTensor* inputs[2] = {at, at};
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_unified_experimental.h

                                               TF_Status* s);
    
    // Create an operation suitable to use with the provided context. The operation
    // requires its type (e.g. "AddV2") to be set independently.
    TF_AbstractOp* TF_NewAbstractOp(TF_ExecutionContext* ctx);
    void TF_DeleteAbstractOp(TF_AbstractOp*);
    
    // TODO(srbs): Add APIs for specifying attrs etc.
    // `op_type` must outlive `op`.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:27:00 GMT 2021
    - 7K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_unified_experimental.cc

                                       &t));
      return wrap(t);
    }
    
    void TF_DeleteExecutionContext(TF_ExecutionContext* c) { unwrap(c)->Release(); }
    
    TF_AbstractOp* TF_NewAbstractOp(TF_ExecutionContext* c) {
      return wrap((unwrap(c)->CreateOperation()));
    }
    
    void TF_DeleteAbstractOp(TF_AbstractOp* op) { unwrap(op)->Release(); }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
Back to top