MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / input_spec

Method input_spec

samples/python/efficientdet/infer.py:99–104  ·  view source on GitHub ↗

Get the specs for the input tensor of the network. Useful to prepare memory allocations. :return: Two items, the shape of the input tensor and its (numpy) datatype.

(self)

Source from the content-addressed store, hash-verified

97 assert len(self.allocations) > 0
98
99 def input_spec(self):
100 """
101 Get the specs for the input tensor of the network. Useful to prepare memory allocations.
102 :return: Two items, the shape of the input tensor and its (numpy) datatype.
103 """
104 return self.inputs[0]['shape'], self.inputs[0]['dtype']
105
106 def output_spec(self):
107 """

Callers 3

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected