MCPcopy Index your code
hub / github.com/pytorch/pytorch / test_print

Method test_print

caffe2/python/hypothesis_test.py:519–523  ·  view source on GitHub ↗
(self, dtype)

Source from the content-addressed store, hash-verified

517 @given(dtype=st.sampled_from([np.float32, np.float64, np.int32, bool]))
518 @settings(deadline=1000)
519 def test_print(self, dtype):
520 data = np.random.permutation(6).astype(dtype)
521 self.ws.create_blob("data").feed(data)
522 op = core.CreateOperator("Print", "data", [])
523 self.ws.run(op)
524
525 @given(inputs=hu.tensors(n=2),
526 in_place=st.booleans(),

Callers

nothing calls this directly

Calls 2

astypeMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected