Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for perm_attr (0.27 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

      return true;
    }
    
    // Create a dummy zero to be fed locally from the host to the TPUExecute.
    Value CreateZeroInput(Location loc, OpBuilder& builder, Attribute zero_attr,
                          DenseIntElementsAttr shape_attr) {
      ConstOp zero = builder.create<ConstOp>(loc, zero_attr);
      zero->setAttr(kICIWeightDistributionMlirBridgeMarker,
                    builder.getBoolAttr(true));
      ConstOp shape = builder.create<ConstOp>(loc, shape_attr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        // as specified by element_dtype.
        RankedTensorType zero_type =
            tensorflow::GetTypeFromTFTensorShape({}, element_dtype);
        auto zero_attr = rewriter.getZeroAttr(zero_type);
        auto zero = rewriter.create<arith::ConstantOp>(loc, zero_type, zero_attr);
    
        rewriter.replaceOpWithNewOp<TF::FillOp>(op, result_type, list_shape, zero);
        return success();
      }
    };
    
    struct ConvertTensorListReserve
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        // Note on zero_attr integer type: DynamicUpdateSlice op start_indices are
        // required to have matching types. This rewrite rule creates
        // DynamicUpdateSlice ops where the first "start index" is always i32 and
        // subsequent ones are constructed based on zero_attr. Thus the type
        // for zero_attr needs to be i32 as well.
        auto zero_attr = IntegerAttr::get(rewriter.getIntegerType(32), 0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
Back to top