Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for shade (0.08 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      }
    
      SmallVector<int64_t> shape;
      bool refined_shape = false;
      // Build the shape of the refined type, if lhs is unranked it
      // will be directly the shape of the refined type, otherwise we merged by
      // taking the most specialized. This combines `10x?x?` and `?x?x8` into
      // `10x?x8`.
      if (!lhs_shape_type.hasRank()) {
        if (rhs_shape_type.hasRank()) {
          shape.append(rhs_shape_type.getShape().begin(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

        merged[indices[m][i], ...] = data[m][i, ...]
    ```
    
    Each `data[i].shape` must start with the corresponding `indices[i].shape`,
    and the rest of `data[i].shape` must be constant w.r.t. `i`.  That is, we
    must have `data[i].shape = indices[i].shape + constant`.  In terms of this
    `constant`, the output shape is
    
        merged.shape = [max(indices) + 1] + constant
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

          }
          SmallVector<int64_t, 4> result_shape = {leading_dim_v};
          ArrayRef<int64_t> shape = element_type.getShape();
          result_shape.append(shape.begin(), shape.end());
          result_type =
              tensorflow::GetTypeFromTFTensorShape(result_shape, element_dtype);
        }
    
        // Create a 1-D RankedTensorType for result's shape. Number of elements in
        // it is equal to the rank of the result, if known. Otherwise, the number of
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/tools/stablehlo_quant_opt.cc

    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/Dialect/Quant/QuantOps.h"  // from @llvm-project
    #include "mlir/Dialect/SCF/IR/SCF.h"  // from @llvm-project
    #include "mlir/Dialect/Shape/IR/Shape.h"  // from @llvm-project
    #include "mlir/Dialect/Tensor/IR/Tensor.h"  // from @llvm-project
    #include "mlir/InitAllPasses.h"  // from @llvm-project
    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 07:37:34 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

      let summary =
        "Replicate TensorList init ops for correct shape assignments in shape inference";
    
      let description = [{
        If we pass same TensorList to a while op as multiple arguments or just use
        the same TensorList at multiple places and assign different
        TensorListSetItem to elements of TensorList, the shape inference is then
        unable to identify the Shape of these args and thus the input TensorList
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        if (ShapedType::isDynamic(num_index_dims)) return failure();
    
        auto updates = op.getUpdates();
    
        // Broadcast scalar `updates` in into expected shape as following shape:
        // updates.shape == indices.shape[:-1] + tensor.shape[indices.shape[-1]:]
        if (updates_ty.getRank() == 0 &&
            (std::is_same<OpTy, TF::TensorScatterUpdateOp>::value ||
             std::is_same<OpTy, TF::TensorScatterAddOp>::value)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/decompose_optionals.mlir

      %cst = "tf.Const"() <{value = dense<1> : tensor<i32>}> {device = ""} : () -> tensor<i32>
      %0 = "tf.MultiDeviceIteratorFromStringHandle"(%arg0) <{output_shapes = [#tf_type.shape<>], output_types = [!tf_type.string]}> {device = ""} : (tensor<!tf_type.string>) -> tensor<!tf_type.resource>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

      zero->setAttr(kICIWeightDistributionMlirBridgeMarker,
                    builder.getBoolAttr(true));
      ConstOp shape = builder.create<ConstOp>(loc, shape_attr);
      shape->setAttr(kICIWeightDistributionMlirBridgeMarker,
                     builder.getBoolAttr(true));
      FillOp fill = builder.create<FillOp>(loc, shape, zero);
      fill->setAttr(kICIWeightDistributionMlirBridgeMarker,
                    builder.getBoolAttr(true));
      return fill;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc

      import_config.upgrade_legacy = true;
      // Disable shape inference during import as some TensorFlow op fails during
      // shape inference with dynamic shaped operands. This in turn causes the
      // import to fail. Shape inference during import is going to be removed and
      // the shape inference pass is run early in the pass pipeline, shape inference
      // during import is not necessary.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/utils/test_metadata_config.cc

    #include "tensorflow/compiler/mlir/tensorflow/utils/convert_type.h"
    #include "tensorflow/compiler/mlir/tensorflow/utils/serialize_mlir_module_utils.h"
    #include "xla/mlir_hlo/mhlo/IR/register.h"
    #include "xla/shape.h"
    #include "xla/translate/mhlo_to_hlo/type_to_shape.h"
    #include "tensorflow/core/framework/tensor_shape.h"
    #include "tensorflow/core/protobuf/tpu/compile_metadata.pb.h"
    #include "tsl/platform/errors.h"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top