Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 139 for input_type (0.15 sec)

  1. tensorflow/cc/framework/ops.h

    class Operation {
     public:
      Operation() : node_(nullptr) {}
      explicit Operation(Node* n);
    
      int32 num_inputs() const { return node_->num_inputs(); }
      DataType input_type(int32_t o) const { return node_->input_type(o); }
      Output input(int32_t i) const;
    
      int32 num_outputs() const { return node_->num_outputs(); }
      DataType output_type(int32_t o) const { return node_->output_type(o); }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

      return attr_enforced_quantizable || trait_enforced_quantizable;
    }
    
    // Returns the quantized type for the
    // input_type/min/max/storag_type_width/narrow_range.
    // This is entry point to the Quant dialect and used for both quantizing
    // activations and weights.
    Type GetQuantizedType(Builder builder, const Type input_type,
                          const ArrayRef<double> min, const ArrayRef<double> max,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top