facebookarchive/caffe2

Segfaults if GivenTensorFill shape doesn't match actual floats

Aperta

#1426 aperta il 3 nov 2017

 (0 commenti) (0 reazioni) (0 assegnatari)Shell (1954 fork)batch import
bughelp wanted

Metriche repository

Star
 (8424 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

It shouldn't do that.

Repro steps:

  1. Make a GivenTensorFill. Set its shape to something big, give it only one value in floats
  2. Run it

Expected result: validation failure Actual result: segfault

Guida contributor