# Please help understand |\> operator

**URL:** <https://discourse.julialang.org/t/please-help-understand-operator/51700>\
**Category:** General Usage\
**Tags:** flux\
**Created:** [December 12, 2020, 2:08am UTC](https://discourse.julialang.org/t/please-help-understand-operator/51700 "2020-12-12T02:08:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asyrov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asyrov/32/13578_2.png) [@asyrov](https://discourse.julialang.org/u/asyrov)\
**Post date:** [December 12, 2020, 2:08am UTC](https://discourse.julialang.org/t/please-help-understand-operator/51700/1 "2020-12-12T02:08:41Z")

</div>

I tried to locate it in documentation, but could not. Can anyone please explain how this “|\> gpu” or “|\> cpu” works? Is this |\> an operator?

Here is example of the code:

```julia
m = Chain(
  Conv((5,5), 3=>16, relu),
  MaxPool((2,2)),
  Conv((5,5), 16=>8, relu),
  MaxPool((2,2)),
  x -> reshape(x, :, size(x, 4)),
  Dense(200, 120),
  Dense(120, 84),
  Dense(84, 10),
  softmax) |> gpu

```

this is from: [Flux – Deep Learning with Flux - A 60 Minute Blitz](https://fluxml.ai/tutorials/2020/09/15/deep-learning-flux.html)

---

<div class="post-metadata">

**Author:** ![purplishrock](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/purplishrock/32/13451_2.png) [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Post date:** [December 12, 2020, 2:14am UTC](https://discourse.julialang.org/t/please-help-understand-operator/51700/2 "2020-12-12T02:14:11Z")

</div>

Operators are in the REPL help of Julia (they can be hard to find in the on-line documentation).  
Access REPL help simply by entering a ‘?’

```julia
help?> |>
search: |>

  |>(x, f)

  Applies a function to the preceding argument. This allows for easy function
  chaining.

  Examples
  ≡≡≡≡≡≡≡≡≡≡

  julia> [1:5;] |> x->x.^2 |> sum |> inv
  0.01818181818181818

julia> 

```
