Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for llvm_unreachable (0.56 sec)

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

            type.getShape(), qtype.getStorageType());
        return DenseElementsAttr::get(
            new_type, builder.getIntegerAttr(qtype.getStorageType(), unique_index));
      }
      llvm_unreachable("unhandled element type");
    }
    
    StatusOr<mlir::ElementsAttr> ConvertIntBuffer(
        mlir::RankedTensorType shaped_type, const std::vector<uint8_t>& buffer,
        bool truncate) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

            IsFunctionCallWithCommunication(op, funcs_to_rewrite))
          if (failed(GetControlFlowAncestors(op, control_flow_ops,
                                             control_flow_blocks)))
            llvm_unreachable(
                "checking original function for control flow ancestors should have "
                "errored first");
      });
    }
    
    void LegalizeTFCommunication::runOnOperation() {
      auto module = getOperation();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

        attrs = tensor_ty.getAttrKeys();
        os << "tensor";
      } else if (auto tensor_list_ty = type.dyn_cast<TFRTensorListType>()) {
        attrs = tensor_list_ty.getAttrKeys();
        os << "tensor_list";
      } else {
        llvm_unreachable("Unhandled tfr type");
      }
    
      if (attrs.empty()) return;
      os << "<";
    
      if (attrs.size() > 1) {
        os << "[";
      }
    
      llvm::interleaveComma(attrs, os,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

        return quant::UniformQuantizedPerAxisType::get(
            q_type.getFlags(), q_type.getStorageType(), q_type.getExpressedType(),
            scales, zero_points, q_type.getQuantizedDimension(), qmin, qmax);
      } else {
        llvm_unreachable("Unsupported QuantizedType in ResetMinMaxFromNumBits");
      }
      return type;
    }
    
    // Changes the axis of the input per-channel quantized type to match the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

    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());
      return builder->create<TF::CastOp>(loc, type, x, truncate);
    }
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      if (auto tl_reserve = dyn_cast<TensorListReserveOp>(op))
        return tl_reserve.getElementShape();
      if (auto tl_from_tensor = dyn_cast<TensorListFromTensorOp>(op))
        return tl_from_tensor.getElementShape();
      llvm_unreachable("unsupported TensorList op");
    }
    
    // Utility function to create a ranked tensor type after dropping the first
    // dimension from the input type.
    RankedTensorType DropFirstDimension(Type type) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

        return ConstOp::build(builder, result, DenseElementsAttr::get(type, value));
      }
      // TODO(jpienaar): support other TensorFlow specific types.
      llvm_unreachable("unsupported attribute type for building tf.Const");
    }
    
    void ConstOp::build(OpBuilder& builder, OperationState& result, Type type,
                        Attribute value) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        return DenseElementsAttr::get(scalar_ty, value);
      } else if (element_ty.isF64()) {
        auto value = APFloat(std::numeric_limits<double>::epsilon());
        return DenseElementsAttr::get(scalar_ty, value);
      }
      llvm_unreachable("unsupported element type for tf.SoftPlus");
    }
    
    //===----------------------------------------------------------------------===//
    // ArgMax/ArgMin op utilities.
    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