Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 128 for get_shape (0.18 sec)

  1. tensorflow/compiler/mlir/lite/utils/validators.cc

      }
      return true;
    }
    
    bool IsDimensionsDegenerateExceptLastOne(TypedAttr val) {
      if (auto ranked_type = mlir::dyn_cast<RankedTensorType>(val.getType())) {
        return IsDimensionsDegenerateExceptLastOne(ranked_type.getShape());
      }
      return false;
    }
    
    }  // namespace TFL
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/analysis/cost_analysis.cc

    namespace tensorflow {
    namespace tfrt_compiler {
    namespace {
    
    constexpr int64_t kDefaultCheapCost = 1;
    
    int64_t GetRankedTensorSize(mlir::TensorType type) {
      auto shape = type.getShape();
    
      int64_t size = 1;
      for (int64_t dim : shape) {
        // For unknown dimensions, use 1 as the size because it is usually the batch
        // dimension.
        //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize_layout.cc

                                                        ArrayRef<int64_t> perm,
                                                        bool isInvert) {
      SmallVector<int64_t, 4> permutedShape = applyPermutation(
          type.getShape(), isInvert ? invertPermutationVector(perm) : perm);
      return RankedTensorType::get(permutedShape, type.getElementType());
    }
    
    static RankedTensorType GetInvertPermutedTensorType(RankedTensorType type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/fold_constant_transpose.cc

        const auto value_attr =
            mlir::cast<DenseFPElementsAttr>(const_op.getValue());
        const ArrayRef<int64_t> original_shape =
            value_attr.getShapedType().getShape();
    
        const SmallVector<float> original_values =
            llvm::to_vector(value_attr.getValues<float>());
    
        // Fold the constant value by transposing the values according to the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFile.java

         * <code>null</code> will be returned.
         *
         * @return The share component or <code>null</code> if there is no share
         */
        public String getShare () {
            return this.fileLocator.getShare();
        }
    
    
        /**
         * Retrieve the hostname of the server for this SMB resource. If the resources has been resolved by DFS this will
         * return the target name.
         * 
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (1)
  6. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

        // TODO(hinsu): Handle constants that are not scalar booleans.
        auto cond_type = mlir::dyn_cast<RankedTensorType>(cond.getType());
        if (!cond_type || !cond_type.getShape().equals({}) ||
            !cond_type.getElementType().isInteger(/*width=*/1))
          return failure();
    
        // Identify the branch to inline.
        bool cond_value = (*cond.value_begin<APInt>()).getSExtValue();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/fuse_convolution_pass.cc

        // Only fuses multiplier if all dimensions other than the out channel
        // dimension are equal to 1.
        if (!TFL::IsDimensionsDegenerateExceptLastOne(
                mul_value.getShapedType().getShape())) {
          return rewriter.notifyMatchFailure(mul_op, [&](::mlir::Diagnostic &diag) {
            diag << "entities 'mul_value' failed to satisfy constraint: "
                    "unsupported dimensions";
          });
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 22:21:19 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/DfsImpl.java

                            r.getServer(),
                            r.getShare(),
                            r.getPath(),
                            path,
                            nextPath));
                }
                DfsReferralData nextstart = resolve(tf, r.getServer(), r.getShare(), nextPath, depthLimit - 1);
                DfsReferralData next = nextstart;
    
                if ( next != null ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu Jan 05 13:07:29 UTC 2023
    - 29.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

        bool same_element_type = output_tensor_type.getElementType() ==
                                 input_vector_type.getElementType();
        bool same_shape =
            output_tensor_type.getShape() == input_vector_type.getShape();
        if (!same_element_type || !same_shape) {
          op.emitError("input and output should have same shape and element type.");
        }
        return success(same_element_type && same_shape);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc

        if (auto ranked_tensor_type =
                mlir::dyn_cast<RankedTensorType>(operand_type)) {
          tensorflow::TensorShapeProto shape_proto;
          ConvertToTensorShapeProto(ranked_tensor_type.getShape(), &shape_proto);
          *arg->mutable_shape() = std::move(shape_proto);
        } else {
          arg->mutable_shape()->set_unknown_rank(true);
        }
    
        if (failed(SetOpSharding(op, input_shardings.getValue()[index],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top