Skip to content

Commit

Permalink
Add mixed precision (elixir-nx#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmor5 authored Jun 20, 2021
1 parent 6e94494 commit 103a1f3
Show file tree
Hide file tree
Showing 8 changed files with 511 additions and 126 deletions.
3 changes: 2 additions & 1 deletion lib/axon.ex
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ defmodule Axon do
@type t :: %__MODULE__{}

@doc false
defstruct [:id, :name, :output_shape, :parent, :op, :params, :opts]
defstruct [:id, :name, :output_shape, :parent, :op, :params, :policy, :opts]

@doc """
Custom Axon layer with given parent.
Expand Down Expand Up @@ -125,6 +125,7 @@ defmodule Axon do
parent: parent,
op: op,
params: parameters,
policy: Axon.MixedPrecision.create_policy(),
opts: opts
}
end
Expand Down
Loading

0 comments on commit 103a1f3

Please sign in to comment.