下面分别用pytorch和tensorflow实现relu和exp函数的forward和b… ... x, a): result = a.mul_(x).exp() ctx.save_for_backward(result) return result ...
確定! 回上一頁