Commit f4ac1567 authored by Nikita Shulga's avatar Nikita Shulga Committed by Facebook GitHub Bot
Browse files

Do not use deprecated `at::Tensor::type()`

Summary:
X-link: https://github.com/facebookexternal/vizard/pull/5

X-link: https://github.com/fairinternal/egohowto/pull/72

Pull Request resolved: https://github.com/facebookresearch/d2go/pull/680

Replace `tensor.type().scalarType()` with `tensor.scalar_type()` (this be able to get rid of the cast function in https://github.com/pytorch/pytorch/pull/139358 )

Remove extraneous braces around lambdas

Reviewed By: huydhn, r-barnes

Differential Revision: D65308547

fbshipit-source-id: d04c62cfa7361c0f69a2eaf1fd331befa9df4395
parent 5b37512b
Pipeline #2711 failed with stages
in 0 seconds