File tree 1 file changed +6
-2
lines changed
test/TensorFlowNET.Graph.UnitTest/GradientTest
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -488,17 +488,20 @@ public void testNoGradientForStringOutputs()
488
488
// self.assertTrue(isinstance(grads[0], ops.Tensor))
489
489
}
490
490
491
- [ Ignore ( "FIXME " ) ]
491
+ [ Ignore ( "TODO: CompositeTensors are not supported yet. " ) ]
492
492
[ TestMethod ]
493
493
public void testSingletonIndexedSlices ( )
494
494
{
495
495
tf . Graph ( ) . as_default ( ) ;
496
496
497
+ // TODO: uncomment when CompositeTensors are supported.
498
+ /*
497
499
var x = tf.placeholder(TF_DataType.TF_FLOAT);
498
500
var y = tf.identity(x);
499
501
var dy_indices = tf.placeholder(TF_DataType.TF_INT32);
500
502
var dy_values = tf.placeholder(TF_DataType.TF_FLOAT);
501
- Tensor dy = new IndexedSlices ( dy_values , dy_indices ) ;
503
+ var dy = new IndexedSlices(dy_values, dy_indices);
504
+
502
505
var dx = tf.gradients(new[] { y }, new[] { x }, grad_ys: new[] { dy })[0];
503
506
// The IndexedSlices gradient of tf.identity is the identity map.
504
507
using (var sess = self.cached_session())
@@ -514,6 +517,7 @@ public void testSingletonIndexedSlices()
514
517
var vdy = result[1];
515
518
self.assertEqual(vdx, vdy);
516
519
}
520
+ */
517
521
518
522
}
519
523
You can’t perform that action at this time.
0 commit comments