@@ -23,11 +23,11 @@ internal ByteStorage (HType fromHandle)
23
23
}
24
24
25
25
[ DllImport ( "caffe2" ) ]
26
- extern static HType THByteStorage_new_wiTHsize ( IntPtr size ) ;
26
+ extern static HType THByteStorage_new_withSize ( IntPtr size ) ;
27
27
28
28
public ByteStorage ( long size )
29
29
{
30
- handle = THByteStorage_new_wiTHsize ( ( IntPtr ) size ) ;
30
+ handle = THByteStorage_new_withSize ( ( IntPtr ) size ) ;
31
31
}
32
32
33
33
~ ByteStorage ( )
@@ -395,7 +395,7 @@ public byte this [long x0] {
395
395
396
396
[ DllImport ( "caffe2" ) ]
397
397
extern static byte THByteTensor_randperm ( HType handle , IntPtr thgenerator , long n ) ;
398
- public void Random ( THRandom source , long n )
398
+ public void Random ( RandomGenerator source , long n )
399
399
{
400
400
if ( source == null )
401
401
throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -404,7 +404,7 @@ public void Random (THRandom source, long n)
404
404
405
405
public void Random ( long n )
406
406
{
407
- using ( var r = new THRandom ( ) )
407
+ using ( var r = new RandomGenerator ( ) )
408
408
Random ( r , n ) ;
409
409
}
410
410
@@ -963,11 +963,11 @@ internal ShortStorage (HType fromHandle)
963
963
}
964
964
965
965
[ DllImport ( "caffe2" ) ]
966
- extern static HType THShortStorage_new_wiTHsize ( IntPtr size ) ;
966
+ extern static HType THShortStorage_new_withSize ( IntPtr size ) ;
967
967
968
968
public ShortStorage ( long size )
969
969
{
970
- handle = THShortStorage_new_wiTHsize ( ( IntPtr ) size ) ;
970
+ handle = THShortStorage_new_withSize ( ( IntPtr ) size ) ;
971
971
}
972
972
973
973
~ ShortStorage ( )
@@ -1335,7 +1335,7 @@ public short this [long x0] {
1335
1335
1336
1336
[ DllImport ( "caffe2" ) ]
1337
1337
extern static short THShortTensor_randperm ( HType handle , IntPtr thgenerator , long n ) ;
1338
- public void Random ( THRandom source , long n )
1338
+ public void Random ( RandomGenerator source , long n )
1339
1339
{
1340
1340
if ( source == null )
1341
1341
throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -1344,7 +1344,7 @@ public void Random (THRandom source, long n)
1344
1344
1345
1345
public void Random ( long n )
1346
1346
{
1347
- using ( var r = new THRandom ( ) )
1347
+ using ( var r = new RandomGenerator ( ) )
1348
1348
Random ( r , n ) ;
1349
1349
}
1350
1350
@@ -1903,11 +1903,11 @@ internal IntStorage (HType fromHandle)
1903
1903
}
1904
1904
1905
1905
[ DllImport ( "caffe2" ) ]
1906
- extern static HType THIntStorage_new_wiTHsize ( IntPtr size ) ;
1906
+ extern static HType THIntStorage_new_withSize ( IntPtr size ) ;
1907
1907
1908
1908
public IntStorage ( long size )
1909
1909
{
1910
- handle = THIntStorage_new_wiTHsize ( ( IntPtr ) size ) ;
1910
+ handle = THIntStorage_new_withSize ( ( IntPtr ) size ) ;
1911
1911
}
1912
1912
1913
1913
~ IntStorage ( )
@@ -2275,7 +2275,7 @@ public int this [long x0] {
2275
2275
2276
2276
[ DllImport ( "caffe2" ) ]
2277
2277
extern static int THIntTensor_randperm ( HType handle , IntPtr thgenerator , long n ) ;
2278
- public void Random ( THRandom source , long n )
2278
+ public void Random ( RandomGenerator source , long n )
2279
2279
{
2280
2280
if ( source == null )
2281
2281
throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -2284,7 +2284,7 @@ public void Random (THRandom source, long n)
2284
2284
2285
2285
public void Random ( long n )
2286
2286
{
2287
- using ( var r = new THRandom ( ) )
2287
+ using ( var r = new RandomGenerator ( ) )
2288
2288
Random ( r , n ) ;
2289
2289
}
2290
2290
@@ -2843,11 +2843,11 @@ internal LongStorage (HType fromHandle)
2843
2843
}
2844
2844
2845
2845
[ DllImport ( "caffe2" ) ]
2846
- extern static HType THLongStorage_new_wiTHsize ( IntPtr size ) ;
2846
+ extern static HType THLongStorage_new_withSize ( IntPtr size ) ;
2847
2847
2848
2848
public LongStorage ( long size )
2849
2849
{
2850
- handle = THLongStorage_new_wiTHsize ( ( IntPtr ) size ) ;
2850
+ handle = THLongStorage_new_withSize ( ( IntPtr ) size ) ;
2851
2851
}
2852
2852
2853
2853
~ LongStorage ( )
@@ -3215,7 +3215,7 @@ public long this [long x0] {
3215
3215
3216
3216
[ DllImport ( "caffe2" ) ]
3217
3217
extern static long THLongTensor_randperm ( HType handle , IntPtr thgenerator , long n ) ;
3218
- public void Random ( THRandom source , long n )
3218
+ public void Random ( RandomGenerator source , long n )
3219
3219
{
3220
3220
if ( source == null )
3221
3221
throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -3224,7 +3224,7 @@ public void Random (THRandom source, long n)
3224
3224
3225
3225
public void Random ( long n )
3226
3226
{
3227
- using ( var r = new THRandom ( ) )
3227
+ using ( var r = new RandomGenerator ( ) )
3228
3228
Random ( r , n ) ;
3229
3229
}
3230
3230
@@ -3783,11 +3783,11 @@ internal DoubleStorage (HType fromHandle)
3783
3783
}
3784
3784
3785
3785
[ DllImport ( "caffe2" ) ]
3786
- extern static HType THDoubleStorage_new_wiTHsize ( IntPtr size ) ;
3786
+ extern static HType THDoubleStorage_new_withSize ( IntPtr size ) ;
3787
3787
3788
3788
public DoubleStorage ( long size )
3789
3789
{
3790
- handle = THDoubleStorage_new_wiTHsize ( ( IntPtr ) size ) ;
3790
+ handle = THDoubleStorage_new_withSize ( ( IntPtr ) size ) ;
3791
3791
}
3792
3792
3793
3793
~ DoubleStorage ( )
@@ -4155,7 +4155,7 @@ public double this [long x0] {
4155
4155
4156
4156
[ DllImport ( "caffe2" ) ]
4157
4157
extern static double THDoubleTensor_randperm ( HType handle , IntPtr thgenerator , long n ) ;
4158
- public void Random ( THRandom source , long n )
4158
+ public void Random ( RandomGenerator source , long n )
4159
4159
{
4160
4160
if ( source == null )
4161
4161
throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -4164,7 +4164,7 @@ public void Random (THRandom source, long n)
4164
4164
4165
4165
public void Random ( long n )
4166
4166
{
4167
- using ( var r = new THRandom ( ) )
4167
+ using ( var r = new RandomGenerator ( ) )
4168
4168
Random ( r , n ) ;
4169
4169
}
4170
4170
@@ -4637,11 +4637,11 @@ internal FloatStorage (HType fromHandle)
4637
4637
}
4638
4638
4639
4639
[ DllImport ( "caffe2" ) ]
4640
- extern static HType THFloatStorage_new_wiTHsize ( IntPtr size ) ;
4640
+ extern static HType THFloatStorage_new_withSize ( IntPtr size ) ;
4641
4641
4642
4642
public FloatStorage ( long size )
4643
4643
{
4644
- handle = THFloatStorage_new_wiTHsize ( ( IntPtr ) size ) ;
4644
+ handle = THFloatStorage_new_withSize ( ( IntPtr ) size ) ;
4645
4645
}
4646
4646
4647
4647
~ FloatStorage ( )
@@ -5009,7 +5009,7 @@ public float this [long x0] {
5009
5009
5010
5010
[ DllImport ( "caffe2" ) ]
5011
5011
extern static float THFloatTensor_randperm ( HType handle , IntPtr thgenerator , long n ) ;
5012
- public void Random ( THRandom source , long n )
5012
+ public void Random ( RandomGenerator source , long n )
5013
5013
{
5014
5014
if ( source == null )
5015
5015
throw new ArgumentNullException ( nameof ( source ) ) ;
@@ -5018,7 +5018,7 @@ public void Random (THRandom source, long n)
5018
5018
5019
5019
public void Random ( long n )
5020
5020
{
5021
- using ( var r = new THRandom ( ) )
5021
+ using ( var r = new RandomGenerator ( ) )
5022
5022
Random ( r , n ) ;
5023
5023
}
5024
5024
0 commit comments