You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

notebook.js 2.6 kB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /** Copyright 2020 Tianshu AI Platform. All Rights Reserved.
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. * =============================================================
  15. */
  16. import request from '@/utils/request';
  17. import { API_MODULE_NAME } from '@/config';
  18. export function list(params) {
  19. return request({
  20. url: `/${API_MODULE_NAME.NOTEBOOK}/notebooks`,
  21. method: 'get',
  22. params,
  23. });
  24. }
  25. export function add(data) {
  26. return request({
  27. url: `/${API_MODULE_NAME.NOTEBOOK}/notebooks`,
  28. method: 'post',
  29. data,
  30. });
  31. }
  32. export function del(ids) {
  33. return request({
  34. url: `/${API_MODULE_NAME.NOTEBOOK}/notebooks`,
  35. method: 'delete',
  36. data: ids,
  37. });
  38. }
  39. export function start(params) {
  40. return request({
  41. url: `/${API_MODULE_NAME.NOTEBOOK}/notebooks/start`,
  42. method: 'put',
  43. params,
  44. });
  45. }
  46. export function stop(params) {
  47. return request({
  48. url: `/${API_MODULE_NAME.NOTEBOOK}/notebooks/stop`,
  49. method: 'put',
  50. params,
  51. });
  52. }
  53. export function open(id) {
  54. return request({
  55. url: `/${API_MODULE_NAME.NOTEBOOK}/notebooks/${id}`,
  56. method: 'get',
  57. });
  58. }
  59. export function getStatus() {
  60. return request({
  61. url: `/${API_MODULE_NAME.NOTEBOOK}/notebooks/status`,
  62. method: 'get',
  63. });
  64. }
  65. export function getModels() {
  66. return request({
  67. url: `/${API_MODULE_NAME.NOTEBOOK}/notebooks/notebook-model`,
  68. method: 'get',
  69. });
  70. }
  71. export function myNotebookCount() {
  72. return request({
  73. url: `/${API_MODULE_NAME.NOTEBOOK}/notebooks/run-number`,
  74. method: 'get',
  75. });
  76. }
  77. export function createNotebook(source, data) {
  78. return request({
  79. url: `/${API_MODULE_NAME.NOTEBOOK}/notebooks/create/${source}`,
  80. method: 'post',
  81. data,
  82. });
  83. }
  84. export function getNotebookAddress(id) {
  85. return request({
  86. url: `/${API_MODULE_NAME.NOTEBOOK}/notebooks/${id}/get-address`,
  87. method: 'get',
  88. });
  89. }
  90. export function detail(data) {
  91. return request({
  92. url: `/${API_MODULE_NAME.NOTEBOOK}/notebooks/detail`,
  93. method: 'post',
  94. data,
  95. });
  96. }
  97. export default { list, add, del, start, stop, open, detail };

一站式算法开发平台、高性能分布式深度学习框架、先进算法模型库、视觉模型炼知平台、数据可视化分析平台等一系列平台及工具,在模型高效分布式训练、数据处理和可视分析、模型炼知和轻量化等技术上形成独特优势,目前已在产学研等各领域近千家单位及个人提供AI应用赋能

Contributors (1)