Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for is_constant (0.24 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/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)
  3. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/multiple-use-next-iteration.pbtxt

      input: "Const"
      attr {
        key: "T"
        value {
          type: DT_INT32
        }
      }
      attr {
        key: "frame_name"
        value {
          s: "while_context"
        }
      }
      attr {
        key: "is_constant"
        value {
          b: false
        }
      }
      attr {
        key: "parallel_iterations"
        value {
          i: 10
        }
      }
    }
    node {
      name: "Merge"
      op: "Merge"
      input: "Enter"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 24 00:20:25 UTC 2020
    - 2K 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/tensorflow/tests/graphdef2mlir/graph-while-loop.pbtxt

      input: "Const"
      attr {
        key: "T"
        value {
          type: DT_INT32
        }
      }
      attr {
        key: "frame_name"
        value {
          s: "while/while_context"
        }
      }
      attr {
        key: "is_constant"
        value {
          b: false
        }
      }
      attr {
        key: "parallel_iterations"
        value {
          i: 10
        }
      }
    }
    node {
      name: "while/Merge"
      op: "Merge"
      input: "while/Enter"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 27 18:14:13 UTC 2020
    - 3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/rewrite_util.h

        DenseFPElementsAttr float_attr;
        if (matchPattern(value, m_Constant(&float_attr)) && float_attr.isSplat() &&
            float_attr.getSplatValue<APFloat>().isExactlyValue(raw_value))
          return true;
      } else if (mlir::isa<IntegerType>(element_type)) {
        DenseIntElementsAttr int_attr;
        if (matchPattern(value, m_Constant(&int_attr)) && int_attr.isSplat() &&
            int_attr.getSplatValue<APInt>() == raw_value)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. tensorflow/cc/ops/const_op_test.cc

    namespace tensorflow {
    
    namespace {
    
    template <typename T>
    void ExpectNodeEqual(const Node* n, gtl::ArraySlice<T> values,
                         TensorShape shape) {
      EXPECT_TRUE(n->IsConstant());
      Tensor tensor;
      TF_EXPECT_OK(GetNodeAttr(n->attrs(), "value", &tensor));
      DataType dtype;
      TF_EXPECT_OK(GetNodeAttr(n->attrs(), "dtype", &dtype));
      EXPECT_EQ(tensor.dtype(), dtype);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 12 14:38:21 UTC 2019
    - 4.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.cc

      LogicalResult matchAndRewrite(TFL::BatchMatMulOp bmm_op,
                                    PatternRewriter& rewriter) const override {
        DenseElementsAttr constant;
        if (auto rhs = bmm_op.getY(); !matchPattern(rhs, m_Constant(&constant))) {
          // The constant may be preceded by QDQs in models with QDQ format, so we
          // should set it to the real constant.
          auto dq = dyn_cast_or_null<DequantizeOp>(rhs.getDefiningOp());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/tensorflow/tf_to_quant.cc

          id2.replaceAllUsesWith(id2.getInput());
          max = tf_op.getMax();
          rewriter.eraseOp(id2);
        }
        if (!matchPattern(min, m_Constant(&min_value))) return failure();
        if (!matchPattern(max, m_Constant(&max_value))) return failure();
    
        int quant_dim = -1;
        if (PerAxis) {
          // This is a special case that the quant_dim is the last dimensions
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top