Comments (5)
it isn't bugged. You cant initialize a DobuleTensor from a FloatTensor. You cannot also do mixed-type operations, i.e. a:add(b) where a = double and b = float tensors is not a valid operation.
from torch7.
torch.Tensor by default is aliased to torch.DoubleTensor
from torch7.
Well, how do I know what a user can send in a function?
from torch7.
This is used in the code quite often to squeeze the first dimension if 1
input = torch.Tensor(input):resize(input:size(2), input:size(3))
What if input
is not DoubleTensor
then?
Does anyone have to check as well all the time?
from torch7.
@soumith OK, I got my answer. There are other bugs elsewhere.
Just tested now to send FloatTensor
to some functions, and everything breaks expectedly.
from torch7.
Related Issues (20)
- Installing Torch in google colab after upgrading cmake, previously worked fine but give me "Error: Build error: Failed building" HOT 1
- Unable to install torch7 on manjaro HOT 2
- tls_local_tensor_type_set can not find _C.pyd simplely?
- YOLO3 make error
- build failed on AArch64, Fedora 33
- た
- Cannot install. Error: Unknown command: cask HOT 2
- torch.load issue on different folder
- cpu Torch7 installation procedure???
- 'python-software-properties' has no installation candidate HOT 1
- Cannot install new package using luarocks install
- Trying to install torch7 on raspberry pi
- Trying to install Torch on MacbookPro with Apple M1 HOT 1
- module 'paths' not found:
- Hrhdh HOT 1
- connnect
- I'm facing difficulty in installing installing the torch7 platform on ubuntu 20.04 wsl(windows 64 bit) HOT 2
- RuntimeError: Tracer cannot infer type of Seq2SeqLMOutput
- nn.Identity() Impact model accuracy
- Nn.comv3d does not support MPS. How to handle it? Can it not be used on Mac M chips
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torch7.