Skip to content

.half() missing and copies from HalfTensor to anything else missing #222

@soumith

Description

@soumith

wrapper code is missing.

import torch

import torch.cuda

a = torch.cuda.FloatTensor(100).half()
---------------------------------------------------------------------------
AttributeError: 'FloatTensor' object has no attribute 'half'
a = torch.cuda.HalfTensor(100)
a.float()
---------------------------------------------------------------------------
RuntimeError: Copy function from HalfTensor to FloatTensor isn't implemented!

print(a)
---------------------------------------------------------------------------
RuntimeError: Copy function from HalfTensor to DoubleTensor isn't implemented!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions