You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tensorlayer/layers/core.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -471,8 +471,7 @@ class OneHotInputLayer(Layer):
471
471
depth : None or int
472
472
If the input indices is rank N, the output will have rank N+1. The new axis is created at dimension `axis` (default: the new axis is appended at the end).
473
473
on_value : None or number
474
-
The value to represnt `ON`.
475
-
- If None, it will default to the value 1.
474
+
The value to represnt `ON`. If None, it will default to the value 1.
476
475
off_value : None or number
477
476
The value to represnt `OFF`. If None, it will default to the value 0.
Method to fill missing pixel, default `nearest`, more options `constant`, `reflect` or `wrap`, see `scipy ndimage affine_transform <https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.ndimage.interpolation.affine_transform.html>`__
153
152
cval : float
154
153
Value used for points outside the boundaries of the input if mode=`constant`. Default is 0.0
155
154
order : int
156
-
The order of interpolation. The order has to be in the range 0-5. See ``tl.prepro.apply_transform``.
The order of interpolation. The order has to be in the range 0-5. See ``tl.prepro.apply_transform`` and `scipy ndimage affine_transform <https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.ndimage.interpolation.affine_transform.html>`__
Method to fill missing pixel, default `nearest`, more options `constant`, `reflect` or `wrap`, see `scipy ndimage affine_transform <https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.ndimage.interpolation.affine_transform.html>`__
403
400
cval : float
404
401
Value used for points outside the boundaries of the input if mode='constant'. Default is 0.0.
405
402
order : int
406
-
The order of interpolation. The order has to be in the range 0-5. See ``apply_transform``.
The order of interpolation. The order has to be in the range 0-5. See ``tl.prepro.apply_transform`` and `scipy ndimage affine_transform <https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.ndimage.interpolation.affine_transform.html>`__
Method to fill missing pixel, default `nearest`, more options `constant`, `reflect` or `wrap`, see and `scipy ndimage affine_transform <https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.ndimage.interpolation.affine_transform.html>`__
478
473
cval : float
479
474
Value used for points outside the boundaries of the input if mode='constant'. Default is 0.0.
480
475
order : int
481
-
The order of interpolation. The order has to be in the range 0-5. See ``apply_transform``.
The order of interpolation. The order has to be in the range 0-5. See ``tl.prepro.apply_transform`` and `scipy ndimage affine_transform <https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.ndimage.interpolation.affine_transform.html>`__
Method to fill missing pixel, default `nearest`, more options `constant`, `reflect` or `wrap`, see `scipy ndimage affine_transform <https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.ndimage.interpolation.affine_transform.html>`__
553
546
cval : float
554
547
Value used for points outside the boundaries of the input if mode='constant'. Default is 0.0.
555
548
order : int
556
-
The order of interpolation. The order has to be in the range 0-5. See ``apply_transform``.
The order of interpolation. The order has to be in the range 0-5. See ``tl.prepro.apply_transform`` and `scipy ndimage affine_transform <https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.ndimage.interpolation.affine_transform.html>`__
Method to fill missing pixel, default `nearest`, more options `constant`, `reflect` or `wrap`, see `scipy ndimage affine_transform <https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.ndimage.interpolation.affine_transform.html>`__
894
885
cval : float
895
886
Value used for points outside the boundaries of the input if mode='constant'. Default is 0.0.
896
887
order : int
897
-
The order of interpolation. The order has to be in the range 0-5. See ``tl.prepro.apply_transform``.
The order of interpolation. The order has to be in the range 0-5. See ``tl.prepro.apply_transform`` and `scipy ndimage affine_transform <https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.ndimage.interpolation.affine_transform.html>`__
899
889
900
890
Returns
901
891
-------
@@ -1631,8 +1621,7 @@ def apply_transform(x, transform_matrix, channel_index=2, fill_mode='nearest', c
1631
1621
channel_index : int
1632
1622
Index of channel, default 2.
1633
1623
fill_mode : str
1634
-
Method to fill missing pixel, default `nearest`, more options `constant`, `reflect` or `wrap`
Method to fill missing pixel, default `nearest`, more options `constant`, `reflect` or `wrap`, see `scipy ndimage affine_transform <https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.ndimage.interpolation.affine_transform.html>`__
1636
1625
cval : float
1637
1626
Value used for points outside the boundaries of the input if mode='constant'. Default is 0.0
0 commit comments