|
|
@@ -44,7 +44,7 @@ export const getStudentDLProjectDetail = (dlworkId, userId) => {
|
|
|
* @param type
|
|
|
* @param name
|
|
|
* @param dltype 机器学习框架类型,0为Tensorflow,1为Pytorch
|
|
|
- * @param useGPU 是否使用GPU
|
|
|
+ * @param numberOfGPU 是否使用GPU
|
|
|
* @param description
|
|
|
* @param startAt
|
|
|
* @param endAt
|
|
|
@@ -53,7 +53,16 @@ export const getStudentDLProjectDetail = (dlworkId, userId) => {
|
|
|
* @returns {Promise<*>}
|
|
|
*/
|
|
|
export const postDLAssignment = (
|
|
|
- { type, name, dltype, useGPU, description, startAt, endAt, problem },
|
|
|
+ {
|
|
|
+ type,
|
|
|
+ name,
|
|
|
+ dltype,
|
|
|
+ useGPU: numberOfGPU,
|
|
|
+ description,
|
|
|
+ startAt,
|
|
|
+ endAt,
|
|
|
+ problem
|
|
|
+ },
|
|
|
courseId
|
|
|
) => {
|
|
|
return request(`${DL_WORK_MODULE}/course/${courseId}/dlwork`, {
|
|
|
@@ -62,7 +71,7 @@ export const postDLAssignment = (
|
|
|
type: type || null,
|
|
|
name: name || null,
|
|
|
dltype: dltype || 0,
|
|
|
- useGPU: useGPU || false,
|
|
|
+ numberOfGPU: numberOfGPU || 0,
|
|
|
description: description || null,
|
|
|
startAt: startAt || null,
|
|
|
endAt: endAt || null,
|