MCPcopy Create free account
hub / github.com/pytorch/pytorch / _direct_initialize_parameters

Method _direct_initialize_parameters

caffe2/python/onnx/backend.py:629–631  ·  view source on GitHub ↗
(cls, initializer, ws, device_option)

Source from the content-addressed store, hash-verified

627
628 @classmethod
629 def _direct_initialize_parameters(cls, initializer, ws, device_option):
630 for tp in initializer:
631 ws.FeedBlob(tp.name, onnx.numpy_helper.to_array(tp), device_option)
632
633 @classmethod
634 def _direct_initialize_inputs(cls, inputs, initialized, ws, device_option):

Callers 1

prepareMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected