Skip to content

Commit

Permalink
chore(spec): add as_type spec
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed May 27, 2023
1 parent c911cd3 commit dcd0550
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/tensorflow_lite_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ module TensorflowLite
# configure inputs
floats = client[0].as_f32
floats[0], floats[1] = inputs
client[0].as_f32.should eq client[0].as_type.as(Slice(Float32))

# run through NN
client.invoke!
Expand Down

0 comments on commit dcd0550

Please sign in to comment.