parent
f6442b6724
commit
cf67c7165a
|
@ -26,9 +26,10 @@
|
|||
namespace nd4j {
|
||||
namespace ops {
|
||||
OP_IMPL(identity, 1, 1, true) {
|
||||
auto z = OUTPUT_VARIABLE(0);
|
||||
|
||||
if (!block.isInplace()) {
|
||||
auto first = INPUT_VARIABLE(0);
|
||||
auto z = OUTPUT_VARIABLE(0);
|
||||
|
||||
// we hope for memcpy here
|
||||
z->assign(first);
|
||||
|
|
|
@ -26,10 +26,10 @@
|
|||
namespace nd4j {
|
||||
namespace ops {
|
||||
OP_IMPL(stop_gradient, 1, 1, true) {
|
||||
if (!block.isInplace()) {
|
||||
auto x = INPUT_VARIABLE(0);
|
||||
auto out = OUTPUT_VARIABLE(0);
|
||||
|
||||
if (!block.isInplace()) {
|
||||
auto x = INPUT_VARIABLE(0);
|
||||
// we hope for memcpy here
|
||||
out->assign(x);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue