Esempio n. 1
0
 def test_can_copy_inputs_from_other_node(self):
     tensor = Variable(name="other_test_tensor")
     tensor.inputs = self.tensor.inputs
     assert tensor.inputs == self.tensor.inputs
     # Contents should be the same, but it should not just be a reference to the existing SynchronizedList
     assert tensor.inputs is not self.tensor.inputs
Esempio n. 2
0
 def test_can_copy_inputs_from_other_node(self):
     tensor = Variable(name="other_test_tensor")
     tensor.inputs = self.tensor.inputs
     assert tensor.inputs == self.tensor.inputs