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

Method input_spec

samples/python/efficientnet/infer.py:85–90  ·  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

83 assert len(self.allocations) > 0
84
85 def input_spec(self):
86 """
87 Get the specs for the input tensor of the network. Useful to prepare memory allocations.
88 :return: Two items, the shape of the input tensor and its (numpy) datatype.
89 """
90 return self.inputs[0]["shape"], self.inputs[0]["dtype"]
91
92 def output_spec(self):
93 """

Callers 3

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected