Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for foo_attr (0.11 sec)

  1. tensorflow/c/c_api_function_test.cc

      // Get non existent attribute
      TF_Buffer* attr_buf = TF_NewBuffer();
      TF_FunctionGetAttrValueProto(func_, "foo_attr", attr_buf, s_);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s_));
      EXPECT_EQ(string("Function 'MyFunc' has no attr named 'foo_attr'."),
                string(TF_Message(s_)));
      TF_DeleteBuffer(attr_buf);
    
      // Set attr
      tensorflow::AttrValue attr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

        Variadic<TF_Tensor>:$input,
    
        ConfinedAttr<SymbolRefArrayAttr, [ArrayMinCount<1>]>:$branches,
    
        // Used to map StatelessCase and Case op defined in TensorFlow to a common
        // op.
        BoolAttr:$is_stateless
      );
    
      let results = (outs
        Variadic<TF_Tensor>:$output
      );
    
      TF_DerivedOperandTypeListAttr Tin = TF_DerivedOperandTypeListAttr<1>;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

                                    PatternRewriter& rewriter) const override {
        const auto f_attr = mlir::dyn_cast<FlatSymbolRefAttr>(call_op.getFAttr());
        // removeAttr will return nullptr if no attribute was removed.
        if (!call_op->removeAttr(kQuantTraitAttrName) || !f_attr) {
          return failure();
        }
        if (!f_attr.getValue().starts_with(kCompositeFuncPrefix)) {
          return failure();
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

    // destination type is not inferred and must be given explicitly.
    //
    // Preconditions: The given value must have a ShapedType.
    static Value CreateTFCastOpI32(OpBuilder *builder, Location loc, Value x,
                                   BoolAttr truncate) {
      auto x_type = mlir::dyn_cast_or_null<ShapedType>(x.getType());
      if (!x_type) llvm_unreachable("unsupported type");
      Type type = x_type.clone(builder->getI32Type());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

        (TFL_BatchMatMulOp:$bmm_tmp_output
          (TFL_ReshapeOp:$initial_shape_change $input, (Arith_ConstantOp $s0)),
          $rhs, $adj_x, $adj_y, $bool_attr),
        (Arith_ConstantOp $s1)),
      (TFL_BatchMatMulOp $input, $rhs, $adj_x, $adj_y, $bool_attr),
      [(HasRank<2> $rhs),
       (HasRank<2> $initial_shape_change),
       (BroadcastDimsProductEqual<0> $input, $initial_shape_change),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

    // destination type is not inferred and must be given explicitly.
    //
    // Preconditions: The given value must have a ShapedType.
    static Value CreateTFCastOpF32(OpBuilder *builder, Location loc, Value x,
                                   BoolAttr truncate) {
      auto x_type = mlir::dyn_cast_or_null<ShapedType>(x.getType());
      if (!x_type) llvm_unreachable("unsupported type");
      Type type = x_type.clone(builder->getF32Type());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

          TF::TensorListLengthOp op, OpAdaptor adaptor,
          ConversionPatternRewriter &rewriter) const override {
        Location loc = op.getLoc();
        Value input_handle = adaptor.getOperands()[0];
    
        BoolAttr true_attr = rewriter.getBoolAttr(true);
        auto shape = rewriter.create<TF::ShapeOp>(loc, input_handle,
                                                  /*use_32bit=*/true_attr);
        rewriter.replaceOpWithNewOp<TF::GatherOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
Back to top