zoulq
a457433a9b
update USER_GUIDE.md ( #657 )
Merge branch 'master' into zlq-opt
update doc
Merge branch 'master' into zlq-opt
fix ascend testcases
Merge branch 'master' into zlq-opt
update moduledict/modulelist/parameterlist/parameterdict
Merge branch 'master' into zlq-opt
update supportlist
Merge branch 'master' into zlq-opt
update nn pad apis
updata review
update loss testcases
Merge branch 'master' into zlq-opt
update loss apis
Merge branch 'master' into zlq-opt
improve loss APIs
Merge branch 'master' into zlq
fix some testcases
Merge branch 'master' into zlq
add adapter auto_mixed_precision api
Merge branch 'master' into zlq
Merge branch 'master' into zlq
Merge branch 'master' into zlq
Merge branch 'master' into zlq
update loss testcase on Ascend
update code
Merge branch 'master' into zlq
update loss api
fix bug
fix bug
Merge branch 'master' into zlq
update
Merge branch 'master' into zlq
Merge branch 'master' into zlq
Merge branch 'master' into zlq
fix bug
Merge branch 'master' of https://openi.pcl.ac.cn/OpenI/MSAdapter into zlq
update ms2.0 new change
Merge branch 'master' into zlq
update tensor¶meter
Merge branch 'master' into zlq
fix bug
fix bug
add tensor.__format__
fix bug
Merge branch 'master' into zlq
fix parametr bug
fix bug
fix bug
fix register
Co-authored-by: zlq2020 <zouliqin@huawei.com>
Reviewed-on: OpenI/MSAdapter#657
9 months ago
lzr_msadapter
15034db59a
Fixed Tensor.max, Tensor.min, torch.zeros, Tensor.new_zeros ( #650 )
Fixed Tensor.max, Tensor.min, torch.zeros, Tensor.new_zeros
Co-authored-by: Zhuoranbupt <929623751@qq.com>
Reviewed-on: OpenI/MSAdapter#650
9 months ago
frelam
d21c98e700
add some lrscheduler ( #653 )
fix format
update code
Merge remote-tracking branch 'upstream/master' into lrscheduler
update some code
update supportlist
update supportlist_en
update supportlist
update supportlist
update supporlist
update supportlist
update code
update supportlist
update supporlist
update supportlist
update supportlist
update supportlist
update supportlist
update supporlist
update supporlist
add supportlist
fix pylint
update testcase
add testcase
add new lrscheduler
Co-authored-by: lvhaoyu <lvhaoyu@huawei.com>
Reviewed-on: OpenI/MSAdapter#653
9 months ago
frelam
153ef70fbf
fix-testcase and suit 0811 mindspore ( #656 )
update readme
Merge remote-tracking branch 'upstream/master' into fix-testcase
fix somethings
suit to 0810 mindspore
fix somethings
fix more testcase
update testcase
fix sometestcase
fix matmul testcase on Ascend
Co-authored-by: lvhaoyu <lvhaoyu@huawei.com>
Reviewed-on: OpenI/MSAdapter#656
9 months ago
hanjr
8cba7d7276
更新 '.drone.yml' ( #658 )
更新 '.drone.yml'
Reviewed-on: OpenI/MSAdapter#658
9 months ago
frelam
a7552efff7
add metadata for module._load_from_state_dict ( #655 )
update testcase
fix metadata.version
Co-authored-by: lvhaoyu <lvhaoyu@huawei.com>
Reviewed-on: OpenI/MSAdapter#655
9 months ago
lzh
dc9afd0af7
fix index_put with empty indices ( #652 )
comment out
fix testcase comments
add testcases for higher-dimension empty indices
fix index_put
Co-authored-by: lzh <liuzehui3@huawei.com>
Reviewed-on: OpenI/MSAdapter#652
9 months ago
Erpim
8d83880e2b
add is quantized ( #654 )
add is quantized
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#654
9 months ago
lzr_msadapter
ff7bd3409a
Add cond ( #639 )
Merge branch 'master' into dev0731
Add cond
Co-authored-by: Zhuoranbupt <929623751@qq.com>
Reviewed-on: OpenI/MSAdapter#639
9 months ago
ziqi
8478662bf7
[Document] Modify USER_GUIDE.md and Debugging_and_Tunning.md ( #647 )
for new comments
for new comments
for new comments
for new comments
for new comments
for new comments
for new comments
for replying comments
for replying comments
test git
modify USER_GUIDE.md file
modify USER_GUIDE.md file
modify USER_GUIDE.md file
modify USER_GUIDE.md file
modify USER_GUIDE.md file
modify USER_GUIDE.md file
modify USER_GUIDE.md file
Co-authored-by: ziqi-jin <ziqijincoder@gmail.com>
Reviewed-on: OpenI/MSAdapter#647
9 months ago
lzh
daebf92333
fix ascend failed tests ( #646 )
fix put_
fix pylinnt
fix diag
fix diag
fix diag
fix diag
fix diag
fix diag
fix scatter_add
fix put_
fix put_
split test_mul1
skip ascend for mul and index_put
fix inner_int(64) index_add
Co-authored-by: lzh <liuzehui3@huawei.com>
Reviewed-on: OpenI/MSAdapter#646
9 months ago
Erpim
97ed47a915
modify tensor.data new_fill ( #649 )
modify tensor.data new_fill
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#649
9 months ago
lzh
4c74b9cdd4
register forward hooks for nn.Module ( #626 )
add comment for bwk hook
add test for modifying module in fwd hook
fix testcases
fix testcases
fix testcases
fix testcases
fix testcases
fix testcases
override run fwd hook
not override register forward hook in adapter
adapter forward pre hook
fix forward hook basic testcase
add basic forward hook testcases
modify and add backward testcase
register func and basic testcases
Co-authored-by: lzh <liuzehui3@huawei.com>
Reviewed-on: OpenI/MSAdapter#626
9 months ago
frelam
703f7430cc
add lrscheduler ( #640 )
fix some comment
update code
update LambdaLR statedict
update code
remove debug msg
fix pylint
update optimzer
update step func
add jit testcase
update code
update load and save
add testcase
add statedict test
update testcase
add lr_scheduler
add LinearLR
update testcase
add ConstantLR
Merge remote-tracking branch 'refs/remotes/upstream/master' into lrscheduler
update code
update testcase
update get_lr
update code and testcase
add lr_scheduler
Merge remote-tracking branch 'refs/remotes/upstream/master' into lrscheduler
add lrscheduler
Co-authored-by: lvhaoyu <lvhaoyu@huawei.com>
Reviewed-on: OpenI/MSAdapter#640
9 months ago
Erpim
d2247b6a95
fix randn/interpolate/__matmul__ ( #648 )
fix randn/interpolate/__matmul__
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#648
9 months ago
frelam
c2ee5d0108
fix tensor.copy_, module load buffer, BatchNorm.num_batches_tracked ( #643 )
add testcase
fix pylint
update code
fix instancenorm load
update testcase
update batchnorm load_from
update module.load
fix testcase
add testcase
fix module load buffer
Co-authored-by: lvhaoyu <lvhaoyu@huawei.com>
Reviewed-on: OpenI/MSAdapter#643
9 months ago
frelam
a412654067
add GradScalar ( #631 )
update format.
update supportlist
update supportlist
update testcase
update _enable=False
Merge remote-tracking branch 'refs/remotes/upstream/master' into gradscaler
fix testcase
add _growth_tracker
update testcase
update testcase
update scaler update
update testcase
update testcase
fix setstate
update code
update code
update testcase
update check_inf
update _per_optimizer_states
update optimizer_state
fix pylint
update optimizer state
update code
add statedict
update init
update testcast
update api
skip testcase
update code
add GradScalar
Co-authored-by: lvhaoyu <lvhaoyu@huawei.com>
Reviewed-on: OpenI/MSAdapter#631
9 months ago
hanjr
fa84a48099
fix load and torchvision/models ( #644 )
Merge branch 'fix_load' of https://openi.pcl.ac.cn/OpenI/MSAdapter into fix_load
fix pylint
Merge branch 'master' into fix_load
fix load and torchvision/models
Co-authored-by: hanjr92 <jiaronghan@outlook.com>
Reviewed-on: OpenI/MSAdapter#644
9 months ago
lzr_msadapter
a14acf0566
Fixed normal_ and random_ ( #603 )
Fixed normal_ and random_
Co-authored-by: Zhuoranbupt <929623751@qq.com>
Reviewed-on: OpenI/MSAdapter#603
9 months ago
lzr_msadapter
3710bce331
Fixed failed cases on GPU and Ascend ( #638 )
Fixed failed cases on GPU and Ascend
Co-authored-by: Zhuoranbupt <929623751@qq.com>
Reviewed-on: OpenI/MSAdapter#638
9 months ago
lzr_msadapter
8c4bdf4fbb
Add triangular_solve, cross ( #634 )
Add triangular_solve, cross
Co-authored-by: Zhuoranbupt <929623751@qq.com>
Reviewed-on: OpenI/MSAdapter#634
9 months ago
hanjr
ef27f144b6
fix_dataloader_test ( #642 )
fix dataloader multi index
Merge branch 'master' into fix_dataloader_test
fix dataloader test
Co-authored-by: hanjr92 <jiaronghan@outlook.com>
Reviewed-on: OpenI/MSAdapter#642
9 months ago
frelam
aea1cb16f8
add some autograd func ( #620 )
update doc
update supportlist
update doc
Merge remote-tracking branch 'refs/remotes/upstream/master' into pijit
update doc
update jocabian testcase
fix pylint
update some code
update inference-mode testcase
update inference mode
update graph constrain for is_grad_enabled
add is_grad_enabled()
Merge remote-tracking branch 'upstream/master' into pijit
fix pylint
update some code
add tensor.grad
update testcase
update jacobian 2 output testcase
update testcase
add jocabian testcase
update testcase
update init
update init
fix pylint
skip testcase
add jvp
update set_grad_enabled
update vjp
Merge remote-tracking branch 'upstream/master' into pijit
add somethings
update jacobian
add setgradenable
Co-authored-by: lvhaoyu <lvhaoyu@huawei.com>
Reviewed-on: OpenI/MSAdapter#620
9 months ago
Erpim
eaa0ef3361
modify default num_workers ( #636 )
Merge branch 'master' into erpim0731
modify default num_workers
Co-authored-by: hanjr <hanjr@pcl.ac.cn>
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#636
9 months ago
hanjr
eaad68b307
fix dataloader test ( #641 )
fix dataloader test
Co-authored-by: hanjr92 <jiaronghan@outlook.com>
Reviewed-on: OpenI/MSAdapter#641
9 months ago
frelam
ea4fc66b40
master-fix-optimizer ( #632 )
update
revert testcase
update optimizer
fix import
add error msg
update
update
fix optimizer ms_state_dict
Co-authored-by: lvhaoyu <lvhaoyu@huawei.com>
Reviewed-on: OpenI/MSAdapter#632
9 months ago
Erpim
d34125bf14
add package convert tool ( #633 )
add package convert tool
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#633
9 months ago
Erpim
e6da8c06bb
add num_batches_tracked ( #637 )
add num_batches_tracked
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#637
9 months ago
lzr_msadapter
0ea7fff95a
Add ormqr, matrix_rank ( #628 )
Add ormqr, matrix_rank
Co-authored-by: Zhuoranbupt <929623751@qq.com>
Reviewed-on: OpenI/MSAdapter#628
9 months ago
Erpim
3683ca2352
update TensorDataset ( #630 )
update TensorDataset
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#630
9 months ago
lzr_msadapter
656e88caca
Add promote_types, frexp ( #619 )
Merge branch 'master' into dev0720
Add promote_types, frexp
Co-authored-by: Zhuoranbupt <929623751@qq.com>
Reviewed-on: OpenI/MSAdapter#619
9 months ago
Erpim
3c67577ac9
update compose ( #629 )
update compose
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#629
9 months ago
lzr_msadapter
9aa06c02a8
Add cholesky_ex, inv_ex, matrix_norm ( #624 )
Merge branch 'master' into dev0725
Add cholesky_ex, inv_ex, matrix_norm
Co-authored-by: Zhuoranbupt <929623751@qq.com>
Reviewed-on: OpenI/MSAdapter#624
9 months ago
Erpim
7735977ed8
update readme ( #625 )
update readme
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#625
9 months ago
frelam
59f62a1858
[2.1]update readme ( #627 )
update readme
Co-authored-by: lvhaoyu <lvhaoyu@huawei.com>
Reviewed-on: OpenI/MSAdapter#627
9 months ago
hanjr
ede44571ef
update readme for torch.utils.data ( #623 )
update readme
Co-authored-by: hanjr92 <jiaronghan@outlook.com>
Reviewed-on: OpenI/MSAdapter#623
9 months ago
lzr_msadapter
c4b65cdb35
[2.1]Fixed TypeError testcases on Ascend ( #605 )
Fixed TypeError testcases on Ascend
Co-authored-by: Zhuoranbupt <929623751@qq.com>
Reviewed-on: OpenI/MSAdapter#605
9 months ago
lzr_msadapter
dba593129b
Add narrow_copy, cholesky_solve ( #618 )
Add narrow_copy, cholesky_solve
Co-authored-by: Zhuoranbupt <929623751@qq.com>
Reviewed-on: OpenI/MSAdapter#618
9 months ago
lzh
4f3ac7c69d
nanmedian & fix arange ( #537 )
fix review issue
fix pylint
skip testcases for gpu and ascend
fix arange
update supportlist
use Median
use ms new api
fix typo and uncomment testcases
resolve conflict
add comment
fix pylint
comment out testcases
replace with existing apis(draft)
nanmedian
Co-authored-by: liuzehui2023 <liuzehui3@huawei.com>
Reviewed-on: OpenI/MSAdapter#537
9 months ago
Erpim
b0a1cdd98c
update _infer_size ( #617 )
update _infer_size
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#617
10 months ago
lzh
6080aa3f04
add multihead bool attn_mask testcase after ms bug fixed ( #612 )
add bool type attn mask
Co-authored-by: liuzehui2023 <liuzehui3@huawei.com>
Reviewed-on: OpenI/MSAdapter#612
10 months ago
frelam
2d2038856b
[2.1] fix ascend assert error testcase ( #611 )
Merge remote-tracking branch 'upstream/master' into master-fix-ascend-testcase
add something
Merge remote-tracking branch 'upstream/master' into master-fix-ascend-testcase
update testcase
update testcase
update testcase
update supportlist
Merge remote-tracking branch 'upstream/master' into master-fix-ascend-testcase
update testcase
update pdist
update atol
Merge remote-tracking branch 'upstream/master' into master-fix-ascend-testcase
update testcase
update test_constant_pad_2d_4d_padding
update testcase
update testcase
update valueerror
fix pylint
update testcase
update testcase
update testcase
update testcase
update xlogy testcase
update logdet testcase
update conv testcase
update truedivide
update floor divide
update true divide
fix rsqrt testcase
update fmod
fix floor divide
fix topk testcase on ascend
fix fmod nan on Ascend
Co-authored-by: lvhaoyu <lvhaoyu@huawei.com>
Reviewed-on: OpenI/MSAdapter#611
10 months ago
lzh
53df450048
[Opt]fix gpu & ascend failed tests ( #599 )
fix review issue for mm
improve inner and mm
fix inner and mm int input bug
fix scatter_add_ testcase for ascend
fix scatter_add errors for ascend
skip -inf testcase for scatter_reduce_amax on ascend
fix typo
skip scatter_nd_mul for ascend
delete wrongly added file
fix scatter_reduce bug
use scatter_nd for scatter_add on ascend
used scatter_(nd_)add for ascend env
skip concat fp64 on ascend
update inner constraintlist
fix inner bug
fix inner mm
skip inf test for sum on gpu
fix scatter_reduce expand error
Co-authored-by: liuzehui2023 <liuzehui3@huawei.com>
Reviewed-on: OpenI/MSAdapter#599
10 months ago
lzr_msadapter
21ebb6b2b7
[2.1]Fixed runtime errors ( #615 )
Merge branch 'master' into dev0711
Fixed runtime errors
Co-authored-by: Zhuoranbupt <929623751@qq.com>
Reviewed-on: OpenI/MSAdapter#615
10 months ago
frelam
8ff20d5410
[2.1] fix_ascend_runtime_eror ( #614 )
update testcase
solve runtime error testcase on ascend
update testcase
Co-authored-by: lvhaoyu <lvhaoyu@huawei.com>
Reviewed-on: OpenI/MSAdapter#614
10 months ago
Erpim
c330a5ddd6
fix dropout bug ( #616 )
fix dropout bug
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#616
10 months ago
lzr_msadapter
f6b8ba1ad1
[Opt]Fixed torch funcs ( #593 )
Merge branch 'master' into dev0629
Merge branch 'master' into dev0629
Fixed torch funcs
Co-authored-by: Zhuoranbupt <929623751@qq.com>
Reviewed-on: OpenI/MSAdapter#593
10 months ago
frelam
192845eeb6
[2.1] update module parameter_and_names ( #613 )
update module parameter_and_names
Co-authored-by: lvhaoyu <lvhaoyu@huawei.com>
Reviewed-on: OpenI/MSAdapter#613
10 months ago
frelam
94420c1ca4
[2.1]master-adapte-optimizer ( #594 )
delete useless optim
fix pylint
Merge remote-tracking branch 'refs/remotes/upstream/master' into master-adapte-optimizer
Merge remote-tracking branch 'refs/remotes/upstream/master' into master-adapte-optimizer
update testcase
update lr to parameters
update testcase
add statedict for adam and adamw
update statedict
add some testcase
add adam and adamw
update adam adamw
change testcase
change init
add some code
add sgd
Co-authored-by: lvhaoyu <lvhaoyu@huawei.com>
Reviewed-on: OpenI/MSAdapter#594
10 months ago
Erpim
5450370977
add no_grad 2.1 ( #601 )
add no_grad
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#601
10 months ago
hanjr
b3c1adbd0a
remove from_torch in load ( #590 )
Merge branch 'master' into LoadAndSave
Merge branch 'master' into LoadAndSave
fix pylint
fix pylint
fix pylint
remove from_torch in load
Merge branch 'master' into LoadAndSave
fix load
Merge branch 'master' into LoadAndSave
fix pylint
fix pylint
fix pylint
fix pylint
fix pylint
refactor save and load
Co-authored-by: Erpim <erpim@noreply.localhost>
Co-authored-by: hanjr92 <jiaronghan@outlook.com>
Reviewed-on: OpenI/MSAdapter#590
10 months ago
lzr_msadapter
b6b9666a0e
Skip test_normal_ on 2.1 ( #608 )
Skip test_normal_ on 2.1
Co-authored-by: Zhuoranbupt <929623751@qq.com>
Reviewed-on: OpenI/MSAdapter#608
10 months ago
frelam
d829b045f7
[2.1]change 'ops.Pad' to 'ms.ops.pad' ( #604 )
Merge remote-tracking branch 'refs/remotes/upstream/master' into master-fix-pad
update nn.Pad
Merge remote-tracking branch 'refs/remotes/upstream/master' into master-fix-pad
update something
update support list
update supportlist
adapte
do some adaption
use ms.ops.pad
Co-authored-by: lvhaoyu <lvhaoyu@huawei.com>
Reviewed-on: OpenI/MSAdapter#604
10 months ago
lzr_msadapter
f80b971114
Fixed errors on 2.1 ( #598 )
Fixed testcases on 2.1
Co-authored-by: Zhuoranbupt <929623751@qq.com>
Reviewed-on: OpenI/MSAdapter#598
10 months ago
hanjr
d251d2204a
更新 '.drone.yml' ( #606 )
更新 '.drone.yml'
Reviewed-on: OpenI/MSAdapter#606
10 months ago
Erpim
69d50b05d5
[Opt]update new_full/new_zeros/all/finfo ( #596 )
update new_full/new_zeros
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#596
10 months ago
lzh
112dae0f60
celu selu gelu ( #592 )
fix SELU CELU supportlist errors
remove key-value assignment constraint in the list
use param_compare in normalize
use param_compare in one_ht
use param_compare in pdist
add grid_sample positional args testcase
improve grid_sample and testcases
nn init funcs testcases improvement
update supportlist
improve celu selu gelu for cpu
Co-authored-by: liuzehui2023 <liuzehui3@huawei.com>
Reviewed-on: OpenI/MSAdapter#592
10 months ago
Erpim
cdf184de6e
[Opt]update flip/matmul/bool/float... ( #597 )
update flip/matmul
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#597
10 months ago
Erpim
b11e5dbdb1
[Opt]fix gpu test ( #600 )
fix gpu test
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#600
10 months ago
frelam
c7c295a2b1
[Opt]add pad_sequence for rnn and lstm `proj_size` ( #586 )
fix some format
Merge remote-tracking branch 'upstream/master' into master-fix-rnn
update supporlist
do some adjustment
use check_forward_args
fix pylint
add comment
use lower-case ops
add _get_sequence_output
update testcase
optimize code
def _get_hx
optimize lstm code
optimize some code
optimize code
optimizer rnn_base code
fix some ops
change testcase
update testcase on ascend
update testcase
update testcase
change gru testcase hidden size to 16 for ascend
add some func
fix some pad sequence code
fix pylint
fix graph mode lstm
add proj_size for lstm
optimize rnn
add pad sequence for lstm
add testcase
add allclose for gru testcase
fix lstm testcase
add allclose testcase for rnn
fix
skip testcase graph mode
add support bidirectional=True
imporve performance
add support of pad sequence
add pad_sequence for rnn
Co-authored-by: lvhaoyu <lvhaoyu@huawei.com>
Reviewed-on: OpenI/MSAdapter#586
10 months ago
laich
908bc694bc
Update 'README.md' ( #589 )
更新 'README.md'
Reviewed-on: OpenI/MSAdapter#589
10 months ago
lzh
3184e55b0a
[Opt]torch func ( #585 )
fix review issue
add validity check in logspace, improve _get_max_prec
fix logspace bug
fix review issues
remove empty lines
improve _get_max_prec_and_mask_list
fix typo
add get highest precision dtype func
update constraintlist for logspace
delete unnecessary func
add torch.ones and torch.zeros testcases
row_stack vstack
add comment for stack and cat-related APIs
update torch.eye
add different types in cat/concat testcases
comment out logspace for GPU
change logspace comment
use type_shape_comp for empty
improve arange on cpu
equal_nan
replace all assert with param_compare
Co-authored-by: liuzehui2023 <liuzehui3@huawei.com>
Reviewed-on: OpenI/MSAdapter#585
10 months ago
Erpim
695e84def2
[Opt]update istesnor/depend ( #588 )
update istesnor
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#588
10 months ago
lzr_msadapter
1046b83f5d
[Opt]Fixed histc on GPU ( #587 )
Fixed histc on GPU
Co-authored-by: Zhuoranbupt <929623751@qq.com>
Reviewed-on: OpenI/MSAdapter#587
10 months ago
Erpim
6b7675057c
[Opt]update gelu/mish/linear/bilinear/distance ( #582 )
update gelu/mish/linear/bilinear/distance
Co-authored-by: Erpim <dengyepeng@huawei.com>
Reviewed-on: OpenI/MSAdapter#582
10 months ago