Home
last modified time | relevance | path

Searched refs:zeroPoint (Results 1 – 16 of 16) sorted by relevance

/external/tensorflow/tensorflow/lite/experimental/swift/Tests/
DQuantizationParametersTests.swift21 let parameters = QuantizationParameters(scale: 0.5, zeroPoint: 1) in testQuantizationParameters_InitWithCustomValues()
23 XCTAssertEqual(parameters.zeroPoint, 1) in testQuantizationParameters_InitWithCustomValues()
27 let parameters1 = QuantizationParameters(scale: 0.5, zeroPoint: 1) in testQuantizationParameters_Equatable()
28 let parameters2 = QuantizationParameters(scale: 0.5, zeroPoint: 1) in testQuantizationParameters_Equatable()
31 let parameters3 = QuantizationParameters(scale: 0.4, zeroPoint: 1) in testQuantizationParameters_Equatable()
41 return lhs.scale == rhs.scale && lhs.zeroPoint == rhs.zeroPoint in ==()
DTensorTests.swift27 let quantizationParameters = QuantizationParameters(scale: 0.5, zeroPoint: 1) in testTensor_Init()
DInterpreterTests.swift260 static let quantizationParameters = QuantizationParameters(scale: 0.003922, zeroPoint: 0)
/external/tensorflow/tensorflow/lite/experimental/swift/Sources/
DQuantizationParameters.swift27 public let zeroPoint: Int variable
34 init(scale: Float, zeroPoint: Int) {
36 self.zeroPoint = zeroPoint
DInterpreter.swift121 let zeroPoint = Int(cQuantizationParams.zero_point) in input() variable
125 quantizationParameters = QuantizationParameters(scale: scale, zeroPoint: zeroPoint) in input()
169 let zeroPoint = Int(cQuantizationParams.zero_point) in output() variable
173 quantizationParameters = QuantizationParameters(scale: scale, zeroPoint: zeroPoint) in output()
/external/tensorflow/tensorflow/lite/experimental/objc/sources/
DTFLQuantizationParameters.m25 - (instancetype)initWithScale:(float)scale zeroPoint:(int32_t)zeroPoint {
29 _zeroPoint = zeroPoint;
DTFLQuantizationParameters+Internal.h29 - (instancetype)initWithScale:(float)scale zeroPoint:(int32_t)zeroPoint;
DTFLInterpreter.mm353 zeroPoint:cParams.zero_point];
/external/tensorflow/tensorflow/lite/experimental/objc/tests/
DTFLQuantizationParametersTests.m41 [[TFLQuantizationParameters alloc] initWithScale:kTestScale zeroPoint:kTestZeroPoint];
43 XCTAssertEqual(params.zeroPoint, kTestZeroPoint);
DTFLInterpreterTests.m223 XCTAssertEqual(inputTensor.quantizationParameters.zeroPoint, kAddQuantizedModelZeroPoint);
249 XCTAssertEqual(outputTensor.quantizationParameters.zeroPoint, kAddQuantizedModelZeroPoint);
/external/tensorflow/tensorflow/lite/experimental/objc/apis/
DTFLQuantizationParameters.h29 @property(nonatomic, readonly) int32_t zeroPoint;
/external/tensorflow/tensorflow/contrib/lite/
Dnnapi_delegate.cc159 int32_t zeroPoint = 0; in addTensorOperands() local
172 zeroPoint = tensor->params.zero_point; in addTensorOperands()
181 zeroPoint = tensor->params.zero_point; in addTensorOperands()
203 reinterpret_cast<uint32_t*>(tensor->dims->data), scale, zeroPoint}; in addTensorOperands()
/external/tensorflow/tensorflow/lite/
Dnnapi_delegate.cc130 int32_t zeroPoint = 0; in addTensorOperands() local
143 zeroPoint = tensor->params.zero_point; in addTensorOperands()
148 zeroPoint = tensor->params.zero_point; in addTensorOperands()
171 reinterpret_cast<uint32_t*>(tensor->dims->data), scale, zeroPoint}; in addTensorOperands()
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate.cc417 int32_t zeroPoint = 0; in AddTensor() local
437 zeroPoint = tensor->params.zero_point; in AddTensor()
450 zeroPoint = tensor->params.zero_point; in AddTensor()
459 reinterpret_cast<uint32_t*>(tensor->dims->data), scale, zeroPoint}; in AddTensor()
/external/tensorflow/tensorflow/lite/experimental/swift/TestApps/TensorFlowLiteApp/TensorFlowLiteApp/
DViewController.swift173 quantizationParameters.scale * Float(Int($0) - quantizationParameters.zeroPoint) in invokeAddQuantized()
/external/tensorflow/tensorflow/lite/nnapi/
DNeuralNetworksTypes.h329 int32_t zeroPoint; member