question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[RELAY][OP] Relay Op Sprint (Part 2)

See original GitHub issue

This is follow-up work to #1799. Now that we have merged an initial version of the Relay evaluator and runtime system in #1954 it is possible to use Relay for end-to-end inference, and optimization.

In order to do so we need to add attributes to the existing operators so that they may be correctly lowered to TVM.

General Steps of Porting

In order to enable lowering of an operator we need to add both a scheduling and compute primitive.

#2050 shows an example for all of the ops in tensor.py

The List

The List

Level 1: Common Basic Ops

  • nn.dense
  • nn.relu
  • tanh
  • sigmoid
  • exp
  • log
  • sqrt
  • add
  • subtract
  • multiply
  • divide
  • mod
  • nn.batch_flatten
  • concatenate
  • nn.softmax
  • nn.log_softmax
  • nn.batch_norm
  • nn.dropout
  • expand_dims

Level 2: Convolutions

  • nn.conv2d
  • nn.conv2d_transpose
  • nn.max_pool2d
  • nn.avg_pool2d
  • nn.global_max_pool2d
  • nn.global_avg_pool2d
  • nn.pad
  • nn.lrn

Level 3: Additional Math And Transform Operators

  • reshape
  • copy
  • negative
  • floor
  • ceil
  • round
  • trunc
  • clip
  • abs
  • leaky_relu
  • tranpose
  • split
  • squeeze
  • take
  • full
  • zeros
  • ones
  • transpose
  • zeros_like
  • ones_like

Level 4: All broadcast and reduction functions that are not in previous level

  • pow
  • less
  • greater
  • less_than
  • greater_than
  • right_shift
  • left_shift
  • maximum
  • minimum
  • sum
  • max
  • prod
  • argmax, argmin
  • strided_slice
  • broadcast_to
  • where

Level 5: Vision Operators

  • image.resize
  • vision.multibox_prior
  • vision.nms

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
yzhliucommented, Nov 17, 2018

@kevinthesun @masahi Yes I’m working on it. ref https://discuss.tvm.ai/t/datalayout-structure/80

BTW sorry for mess up the edit history, my edition has been reverted. @jroesch

0reactions
tqchencommented, Dec 14, 2018

Thanks to everyone’s effort, most of the ops are now supported. Let us open new threads to catch the remaining outliers when necessary

Read more comments on GitHub >

github_iconTop Results From Across the Web

Relayops
Click below for instructions on how to set up your Relay app. Install for Android · Install for IPhone · How to set...
Read more >
Daggett-Sprint Relays - Ngin
FULL SPEED THROUGH THE ZONE. FOLLOW OUT OF THE EXCHANGE ZONE. IF YOU LEARN TO SLOW DOWN RIGHT AFTER. THE HANDOFF, YOU'LL START...
Read more >
Find a Relay - Peak to Brew Relay
Peak 2 Brew (P2B) offers 2 different types of Team Running Relays: ... The P2B SPRINT Relay Series provides all levels of runners...
Read more >
OrNetStats - Nusenu
Relays are aggregated based on effective families. Effective families are relays with a mutually configured MyFamily setting. Single relays (without family) ...
Read more >
WOC 2014 Sprint Relay - YouTube
World Orienteering Championships 2014 - Sprint RelayTrento, ItalyAll rights belong to International Orienteering Federation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found