#912 add mem_get_info

Merged
zoulq merged 1 commits from erpim_0402 into master 8 months ago
Erpim commented 9 months ago
hanjr reviewed 9 months ago
mindtorch/torch/tensor.py
@@ -460,2 +460,3 @@
other_ms = cast_to_ms_tensor(other)
out = tensor_ms.__mul__(other_ms)

if tensor_ms.dtype == mstype.bool_ and other_ms.dtype == mstype.bool_:
hanjr commented 9 months ago
加法是不是也需要修改成 bool类型使用 logical_or
Erpim commented 8 months ago
done
Erpim changed title from add mem_get_info to [wip]add mem_get_info 9 months ago
Erpim reviewed 9 months ago
mindtorch/torch/cuda/__init__.py
@@ -103,9 +105,10 @@ def is_initialized():
backend = get_backend()
return ms.hal.is_initialized(backend)

@lru_cache(_GLOBAL_LRU_CACHE_SIZE_NN)
Erpim commented 9 months ago
仅第一次调用时打印,不影响功能,避免刷屏
Erpim changed title from [wip]add mem_get_info to add mem_get_info 8 months ago
hanjr commented 8 months ago
Collaborator
\lgtm
zoulq merged commit 9d0607ff38 into master 8 months ago
The pull request has been merged as 9d0607ff38.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.