当前位置: 首页 > news >正文

佛山国内快速建站建筑费用明细表模板

佛山国内快速建站,建筑费用明细表模板,北京都有哪些公司名称,建设银行官网登录Rotation 类(rigid_utils 模块)是 AlphaFold3 中用于 3D旋转 的核心组件,支持两种旋转表示: 1️⃣ 旋转矩阵 (3x3) 2️⃣ 四元数 (quaternion, 4元向量) 👉 设计目标: 允许灵活选择 旋转矩阵 或 四元数 封装了常用的 旋转操作(组合、逆旋转、应用到点上等) 像 torch.…Rotation类(rigid_utils模块)是AlphaFold3中用于3D旋转的核心组件,支持两种旋转表示: 1️⃣旋转矩阵 (3x3) 2️⃣四元数 (quaternion, 4元向量) 👉设计目标: 允许灵活选择旋转矩阵或四元数 封装了常用的旋转操作(组合、逆旋转、应用到点上等) 像torch.Tensor一样,支持索引、拼接、广播等操作 源代码: class Rotation:"""A 3D rotation. Depending on how the object is initialized, therotation is represented by either a rotation matrix or aquaternion, though both formats are made available by helper functions.To simplify gradient computation, the underlying format of therotation cannot be changed in-place. Like Rigid, the class is designedto mimic the behavior of a torch Tensor, almost as if each Rotationobject were a tensor of rotations, in one format or another."""def __init__(self,rot_mats: Optional[torch.Tensor] = None,quats: Optional[torch.Tensor] = None,normalize_quats: bool = True,):"""Args:rot_mats:A [*, 3, 3] rotation matrix tensor. Mutually exclusive withquatsquats:A [*, 4] quaternion. Mutually exclusive with rot_mats. Ifnormalize_quats is not True, must be a unit quaternionnormalize_quats:If quats is specified, whether to normalize quats"""if((rot_mats is None and quats is None) or (rot_mats is not None and quats is not None)):raise ValueError("Exactly one input argument must be specified")if((rot_mats is not None and rot_mats.shape[-2:] != (3, 3)) or (quats is not None and quats.shape[-1] != 4)):raise ValueError("Incorrectly shaped rotation matrix or quaternion")# Force full-precisionif(quats is not None):quats = quats.to(dtype=torch.float32)if(rot_mats is not None):rot_mats = rot_mats.to(dtype=torch.float32)if(quats is not None and normalize_quats):quats = quats / torch.linalg.norm(quats, dim=-1, keepdim=True)self._rot_mats = rot_matsself._quats = quats@staticmethoddef identity(shape,dtype: Optional[torch.dtype] = None,device: Optional[torch.device] = None,requires_grad: bool = True,fmt: str = "quat",) - Rotation:"""Returns an identity Rotation.Args:shape:The "shape" of the resulting Rotation object. See documentationfor the shape propertydtype:The torch dtype for the rotationdevice:The torch device for the new rotationrequires_grad:Whether the underlying tensors in the new rotation objectshould require gradient computationfmt:One of "quat" or "rot_mat". Determines the underlying formatof the new object's rotation Returns:A new identity rotation"""if(fmt == "rot_mat"):rot_mats = identity_rot_mats(shape, dtype, device, requires_grad,)return Rotation(rot_mats=rot_mats, quats=None)elif(fmt == "quat"):quats = identity_quats(shape, dtype, device, requires_grad)return Rotation(rot_mats=None, quats=quats, normalize_quats=False)else:raise ValueError(f"Invalid format: f{fmt}")# Magic methodsdef __getitem__(self, index: Any) - Rotation:"""Allows torch-style indexing over the virtual shape of the rotationobject. See documentation for the shape property.Args:index:A torch index. E.g. (1, 3, 2), or (slice(None,))Returns:The indexed rotation"""if type(index) != tuple:index = (index,)if(self._rot_mats is not None):rot_mats = self._rot_mats[index + (slice(None), slice(None))]return Rotation(rot_mats=rot_mats)elif(self._quats is not None):quats = self._quats[index + (slice(None),)]return Rotation(quats=quats, normalize_quats=False)else:raise ValueError("Both rotations are None")def __mul__(self,right: torch.Tensor,) - Rotation:"""Pointwise left multiplication of the rotation with a tensor. Can beused to e.g. mask the Ro
http://www.pierceye.com/news/740822/

相关文章:

  • 深圳外贸网站设计公司郑州seo培训
  • 公司高端网站设计公司湖南竞网做网站好吗
  • 做微信的微网站费用黄冈论坛遗爱湖
  • 设计师用什么做网站河南程序开发公司
  • 路由器做服务器做网站怎么在百度发布免费广告
  • 惠州网站制作推广做响应式网站设计做图怎么搞
  • 天津高端网站设计公司美食网页设计图
  • 做柱状图饼状图好看的网站四川省住房和城乡建设厅证书
  • 网站建设公司模版wordpress自适应站点
  • 怎么在百度上创建网站wordpress时间轴页面
  • 网站建设公司济宁深圳互联网营销外包
  • 交互设计产品榆林网站seo
  • 唯品会网站开发招聘英文网站公司
  • 网站的推广一般有什么方式韩城网站建设韩城网站推广
  • 书城网站开发四川省建设厅网站投诉
  • 想要个网站沈阳网站备案
  • 网站建设分哪些类别谁有做爰网站号
  • 建设电子票务系统的网站需要多少钱网站开发一对一
  • 网站规划可以分成哪几步上海营销型网站制作
  • gta5 网站正在建设中新品发布会ppt
  • 做的网站每年需要续费idc网站源码
  • 备案主体负责人和网站负责人新网站 seo
  • 网站后台有什么用wordpress 不显示账号名
  • 另类小说 Wordpress长沙seo步骤
  • 网站建设7个基37网游官网
  • 网站设计存在的问题建筑设计私活平台
  • 网站如何做淘宝支付宝wordpress多站点不显示
  • 关于设计的网站免费注册公司
  • 网站建设排名北京网站排名降级的原因有哪些
  • 介绍网页设计做seo推广网站