Skip to content

Commit

Permalink
Fix typo in golang sample (apache#13476)
Browse files Browse the repository at this point in the history
Create complex.go

At line132, raw code is `inSlice := make([]float32, (244 * 244 * 3))`,
Howover, at line90 the input shape set `tshapeIn  := []int64{1, 224, 224, 3}`, 
So there is an error uncatched.
  • Loading branch information
Duture authored Nov 28, 2022
1 parent 5d8fc20 commit b6151bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion golang/sample/complex.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func main() {
fmt.Printf("Module params loaded\n")

// Set some data in input Array
inSlice := make([]float32, (244 * 244 * 3))
inSlice := make([]float32, (224 * 224 * 3))
rand.Seed(10)
rand.Shuffle(len(inSlice), func(i, j int) {inSlice[i],
inSlice[j] = rand.Float32(),
Expand Down

0 comments on commit b6151bc

Please sign in to comment.