Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for is_constant (0.26 sec)

  1. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.h

    namespace mlir {
    namespace TFL {
    
    bool IsQuantized(const tflite::TensorT& tensor);
    
    absl::StatusOr<mlir::quant::QuantizedType> GetQuantizedType(
        const tflite::TensorT& tensor, mlir::Builder builder,
        bool is_constant = false, mlir::Type storage_type = {});
    
    // Imports float tensor with calibration value into calibrated quantized type.
    absl::StatusOr<mlir::quant::QuantizedType> GetCalibratedQuantizedType(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc

    // We have a special case for constants since they have a higher minimum value.
    StatusOr<QuantizedType> GetQuantizedType(const TensorT& tensor, Builder builder,
                                             bool is_constant,
                                             mlir::Type storage_type) {
      tflite::QuantizationParametersT& quant_params = *tensor.quantization;
      if (quant_params.details.AsCustomQuantization()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/node_matchers_test.cc

          ops::Placeholder(root.WithOpName("data"), DT_FLOAT), "frame_name",
          ops::internal::Enter::Attrs{}.IsConstant(true));
      EXPECT_THAT(enter.node(), NodeWith(Attr("is_constant", true)));
      EXPECT_EQ(Explain(enter.node(), NodeWith(Attr("is_constant", false))),
                "attribute named is_constant does not match value; expected: "
                "\"false\", found: \"true\"");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 14:43:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/legalize_tfg_with_control_flow.mlir

        %Const, %ctl = Const name("Const") {dtype = i32, value = dense<0> : tensor<i32>} : () -> (tensor<i32>)
        %Enter, %ctl_0 = Enter(%Const) name("while/Enter") {T = i32, frame_name = "while/while_context", is_constant = false, parallel_iterations = 10 : i64} : (tensor<i32>) -> (tensor<*xi32>)
        %NextIteration, %ctl_1 = NextIteration(%Add) name("while/NextIteration") {T = i32} : (tensor<*xi32>) -> (tensor<*xi32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 06 18:31:38 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/legalize_tfg_arg_control_dep.mlir

        %Const, %ctl = Const [%arg.ctl] name("test") {dtype = i32, value = dense<0> : tensor<i32>} : () -> (tensor<i32>)
        %Enter, %ctl_0 = Enter(%Const) [%arg.ctl] name("while/Enter") {T = i32, frame_name = "while/while_context", is_constant = false, parallel_iterations = 10 : i64} : (tensor<i32>) -> (tensor<*xi32>)
        %NextIteration, %ctl_1 = NextIteration(%Const) [%arg.ctl] name("while/NextIteration") {T = i32} : (tensor<i32>) -> (tensor<*xi32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 06 02:08:28 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

                                             /*is_constant=*/true));
      auto shaped_type = type.dyn_cast<mlir::RankedTensorType>();
      if (!shaped_type) {
        return errors::Internal("Constant doesn't have a shape");
      }
    
      TF_ASSIGN_OR_RETURN(type, tfl::GetTensorType(tensor, builder,
                                                   /*is_constant=*/true,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_executor_ops.td

        This is defined in Tensorflow as:
    
        REGISTER_OP("Enter")
           .Input("data: T")
           .Output("output: T")
           .Attr("T: type")
           .Attr("frame_name: string")
           .Attr("is_constant: bool = false")
           .Attr("parallel_iterations: int = 10")
    
        For example:
           %res:2 = tf_executor.Enter %arg0 frame "some/frame" parallel_iterations 42 constant : tensor<*xf32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 23 19:35:12 UTC 2023
    - 22K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_launch_util.cc

    Status SetOutputForConstant(
        OpKernelContext* ctx, bool requires_copy_to_device,
        const XlaCompiler::CompilationResult* compilation_result, int output_num) {
      CHECK(compilation_result->outputs[output_num].is_constant);
      const Tensor& const_tensor =
          compilation_result->outputs[output_num].constant_value;
      Tensor* output_tensor;
      if (requires_copy_to_device && const_tensor.TotalBytes() > 0) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

                                  result.attributes))
          return failure();
      }
      bool has_constant = succeeded(parser.parseOptionalKeyword("constant"));
      result.addAttribute("is_constant", BoolAttr::get(context, has_constant));
    
      SmallVector<Type, 1> types;
      if (parser.parseColonTypeList(types)) return failure();
      if (types.size() != 1)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/tf_xla_mlir_translate.cc

               << ')';
        if (xla_output_description.input_index >= 0)
          output << " input_index=" << xla_output_description.input_index;
        if (xla_output_description.is_constant) output << " constant";
        if (xla_output_description.is_tensor_list) output << " tensor_list";
        output << '\n';
      }
    
      for (const auto& resource_update : compilation_result.resource_updates) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.8K bytes
    - Viewed (0)
Back to top