Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 128 for get_shape (0.38 sec)

  1. tensorflow/compiler/mlir/lite/transforms/dilated_conv.h

        // Connect `expand_op` with the input of `stb_op`.
        expand_op.setOperand(0, stb_op.getInput());
        // Calculate the shape for expand.
        auto input_shape =
            mlir::cast<ShapedType>(stb_op.getInput().getType()).getShape();
        SmallVector<int64_t, 4> expand_shape(input_shape.begin(),
                                             input_shape.end());
        expand_shape.insert(expand_shape.begin() + expand_axis, 1);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc

        const auto result_type = mlir::cast<TensorType>(op.getResult(0).getType());
        const SmallVector<int64_t> new_result_shape =
            Permute<int64_t>(result_type.getShape(), kNchwToNhwcPermutation);
    
        const TensorType new_result_type =
            result_type.cloneWith(new_result_shape, result_type.getElementType());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc

                                      DenseIntElementsAttr bcast_dims) {
      auto dimensions = llvm::to_vector(bcast_dims.getValues<int64_t>());
      const auto result_shape = result_type.getShape();
      // Index for the broadcasted matrix.
      llvm::SmallVector<int64_t, 16> current_index(result_type.getRank(), 0);
      // Computes the new operand shape using the original shape and the broadcast
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/SmbResourceLocator.java

         * and <code>smb://server/</code> URLs which do not specify a share,
         * <code>null</code> will be returned.
         *
         * @return The share component or <code>null</code> if there is no share
         */
        String 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.
         * 
         * @return The server name
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

      if (!variant_type || variant_type.getSubtypes().size() != 1) return failure();
      TensorType tensor_type = variant_type.getSubtypes().front();
      if (!tensor_type.hasStaticShape()) return failure();
      for (auto d : tensor_type.getShape()) shape->push_back(d);
      return success();
    }
    
    LogicalResult HandleEmptyTensorListOp(
        TF::EmptyTensorListOp list,
        llvm::SmallDenseMap<Value, SizeInfo>* buffer_to_size) {
      Value buffer;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

        zero = builder.getFloatAttr(elem_type, 0);
      } else {
        return false;
      }
      if (auto ranked_type = dyn_cast<RankedTensorType>(type)) {
        llvm::ArrayRef<int64_t> type_shape = ranked_type.getShape();
        for (int64_t i : type_shape) {
          if (i < 0) return false;
        }
        shape = builder.getI64TensorAttr(type_shape);
      } else {
        return false;
      }
      return true;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.cc

            new_values.push_back(
                rewriter.create<fallback_async::ConstStringTensorOp>(
                    op.getLoc(), rewriter.getType<fallback::TFTensorType>(),
                    corert_const_string_tensor_op.getShape(),
                    corert_const_string_tensor_op.getValue()));
            should_rewrite = true;
            continue;
          }
          // To guarantee that the new values are in the same order as the old
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc

    GetBroadcastShapesForBatchMatmul(ShapedType input_type,
                                     ShapedType weight_type) {
      ArrayRef<int64_t> input_shape = input_type.getShape();
      ArrayRef<int64_t> weight_shape = weight_type.getShape();
    
      const int64_t num_matmul_dim = 2;
      const int64_t num_input_batch_dim = input_type.getRank() - num_matmul_dim;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td

      } else {
        SmallVector<int64_t, 4> resultShape;
        if (!OpTrait::util::getBroadcastedShape(
                x.getType().cast<ShapedType>().getShape(),
                y.getType().cast<ShapedType>().getShape(), resultShape)) {
          mlir::emitError($_state.location,
                          "operands have no broadcastable shapes");
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 30.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

                                              axis_op);
    }
    
    ArrayRef<int64_t> GetRankedTensorShape(Value value) {
      return mlir::cast<RankedTensorType>(value.getType()).getShape();
    }
    
    Value SliceRankedTensor(OpBuilder* builder, Value input,
                            ArrayRef<int64_t> begin_shape,
                            ArrayRef<int64_t> begin_values,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
Back to top