Skip to content

Commit

Permalink
Replace deprecated alias 'np.float' to 'np.float64' (#3713)
Browse files Browse the repository at this point in the history
Signed-off-by: Hyeonwoo Koo <[email protected]>
  • Loading branch information
quic-hyeokoo authored Jan 7, 2025
1 parent 1b47ec5 commit a7172a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def test_per_channel_qc_quantizer_conv2d():

kernel_init_constant = np.array(
[[[[-1.4, -0.61],
[1.59, 0.68]]]], dtype=np.float
[1.59, 0.68]]]], dtype=np.float64
)

conv2d = tf.keras.layers.Conv2D(
Expand Down Expand Up @@ -565,7 +565,7 @@ def test_per_channel_qc_quantizer_Dense():
inp = tf.keras.layers.Input(shape=input_shape[1:])
test_inp = np.random.random(input_shape)
kernel_init_constant = np.array(
[[-1.4, -0.61],[1.59, 0.68]],dtype=np.float
[[-1.4, -0.61],[1.59, 0.68]],dtype=np.float64
)
dense = tf.keras.layers.Dense(2, kernel_initializer=tf.initializers.Constant(kernel_init_constant))
# run forward pass on conv2d to generate weights
Expand Down

0 comments on commit a7172a0

Please sign in to comment.