BNM icon indicating copy to clipboard operation
BNM copied to clipboard

Tensor

Open mzprose opened this issue 3 years ago • 4 comments

Hello,if I have a Tensor with size [8,3,512,512], how can I compute BNM?

mzprose avatar Jun 02 '21 07:06 mzprose

That depends on the goal of optimization the tensor. If batch_size=8, class_num=3, width=height=512,
you can resize the tensor to [8 * 512 * 512, 3], to ensure class_num (3) as a dimension. Then BNM loss can be calculated on the tensor with size of [8 * 512 * 512, 3].

cuishuhao avatar Jun 03 '21 05:06 cuishuhao

Thank you for answering, I will try, but in this case, there is a question, is the matrix too large, I am afraid it is difficult to execute the program.

mzprose avatar Jun 03 '21 06:06 mzprose

Tricks in https://github.com/cuishuhao/BNM/issues/3 might work. We also speed up BNM in recent unpublished work, which might be released in September.

cuishuhao avatar Jun 03 '21 09:06 cuishuhao

OK,thanks for your reply!

mzprose avatar Jun 03 '21 09:06 mzprose