- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 134 for input_type (0.3 sec)
-
tensorflow/compiler/mlir/lite/quantization/ir/ConvertSimQuant.cc
auto qbarrier = rewriter.create<QuantizeCastOp>(op.getLoc(), quantizedType, op.getInputs()); rewriter.replaceOpWithNewOp<DequantizeCastOp>(op, converter.input_type, qbarrier.getResult()); return false; } }; class ConstFakeQuantRewrite : public FakeQuantRewrite<ConstFakeQuantRewrite, ConstFakeQuant> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/python/converter_python_api.cc
const tflite::TensorType input_type = FromTocoDataTypeToTflitToTensorType(input_data_type); const tflite::TensorType output_type = FromTocoDataTypeToTflitToTensorType(output_data_type); std::string output_model; const absl::string_view input_model_buffer(buf, length); auto status = mlir::lite::QuantizeModel( input_model_buffer, input_type, output_type, inference_tensor_type,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 19.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
// Create a tfl.transpose op that performs ZX transpose on `input`. auto create_z_x_transpose_op = [&](Value input) -> Value { RankedTensorType input_type = mlir::cast<RankedTensorType>(input.getType()); const int input_rank = input_type.getRank(); // Create a 1D I32 tensor for representing the dimension permutation. auto permuation_tensor_type =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py
shape=input_shape, dtype=dtypes.float32, name='input_tensor' ) ), options=save_options, ) return model def _create_gather_model(self, input_type, use_variable) -> module.Module: class GatherModel(module.Module): """A simple model with a single gather.""" def __init__(self, use_variable): """Initializes a GatherModel.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 18.2K bytes - Viewed (0) -
pkg/test/config/mock_config.pb.go
} var file_pkg_test_config_mock_config_proto_depIdxs = []int32{ 1, // 0: config.MockConfig.pairs:type_name -> config.ConfigPair 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension extendee 0, // [0:1] is the sub-list for field type_name }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 03 17:06:22 UTC 2022 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h
// of `input_type`, if the `quant_dim` is valid. On the other hand, the // symmetry of min and max is not adjusted by this method. The QAT workflow // should set min/max correctly (and use `narrow_range`=true, `is_signed`=true) // if symmetric quantization is required. TypeAttr GetQuantizedTypeAttr(Builder builder, Type input_type, Attribute min,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/passes.h
std::unique_ptr<OperationPass<ModuleOp>> CreateOptimizeFunctionalOpsPass(); std::unique_ptr<OperationPass<func::FuncOp>> CreateModifyIONodesPass( mlir::Type input_type, mlir::Type output_type); std::unique_ptr<OperationPass<func::FuncOp>> CreateModifyIONodesPass(); // Creates an instance of the TensorFlow Lite dialect PostQuantizeRemoveQDQ // pass.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 07 21:29:34 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py
('use_constant_with_int64_input', np.int64, False), ('use_variable_with_int64_input', np.int64, True), ) @test_util.run_v2_only def test_gather_model(self, input_type, use_variable): model = self._create_gather_model(input_type, use_variable) save.save(model, self._input_saved_model_path) rng = np.random.default_rng(seed=42) static_input_shape = [6]
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 51.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
// If no padding is negative return the input as is. if (llvm::all_of(explicit_padding, [](int64_t pad) { return pad >= 0; })) { return value; } auto input_type = mlir::cast<RankedTensorType>(value.getType()); auto input_shape = input_type.getShape(); llvm::SmallVector<int64_t, 4> start; llvm::SmallVector<int64_t, 4> size; start.reserve(explicit_padding.size() / 2);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/compiler/jit/encapsulate_xla_computations_pass.cc
*index); } return absl::OkStatus(); } // Returns the data type of the destination of an edge. DataType EdgeType(const Edge* edge) { return edge->dst()->input_type(edge->dst_input()); } // Adds the control inputs of `node` to `*deps`. void AddControlInputs(const Node& node, absl::flat_hash_set<Node*>* deps) { for (const Edge* edge : node.in_edges()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 15.1K bytes - Viewed (0)