Skip to content

Commit

Permalink
remove weight field of Conv2D
Browse files Browse the repository at this point in the history
Using the weight field directly does not work. Use the `weight=`
procedure instead to assign the weight.
  • Loading branch information
Vindaar committed Oct 11, 2023
1 parent 03577cb commit 6b7d380
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion flambeau/raw/bindings/neural_nets.nim
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ type
# Conv2d is a shared_ptr underneath.
# The ptr is bycopy which results in the actual data being byref.
options*{.importc.}: Conv2DOptions
weight*{.importc.}: RawTensor
bias*{.importc.}: RawTensor

func init*(T: type Conv2dOptions, in_channels, out_channels, kernel_size: int64 or array[2, int64]): T {.constructor, importcpp: "torch::nn::Conv2dOptions(@)".}
Expand Down

0 comments on commit 6b7d380

Please sign in to comment.