Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AllReduceOp (0.18 sec)

  1. tensorflow/c/eager/c_api_test_util.h

    // Return a shape op fetching the shape of `a`.
    TFE_Op* ShapeOp(TFE_Context* ctx, TFE_TensorHandle* a);
    
    // Return an allreduce op adding up input tensor `in` from `group_size` workers.
    TFE_Op* AllReduceOp(TFE_Context* ctx, TFE_TensorHandle* in, int group_size);
    
    // Return a SendOp op `op_name` with send input tensor `in` and attributes
    // `send_device`, `recv_device`, and `send_device_incarnation` set.
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Jul 17 23:43:59 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_test_util.cc

      TFE_OpSetAttrBool(op, "keep_dims", 1);
      TFE_OpSetAttrType(op, "Tidx", TF_INT32);
      TF_DeleteStatus(status);
      TFE_OpSetAttrType(op, "T", TFE_TensorHandleDataType(input));
    
      return op;
    }
    
    TFE_Op* AllReduceOp(TFE_Context* ctx, TFE_TensorHandle* in, int group_size) {
      TF_Status* status = TF_NewStatus();
    
      TFE_Op* op = TFE_NewOp(ctx, "CollectiveReduce", status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
Back to top