Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 341 for TensorT (0.25 sec)

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

      }
    }
    
    }  // namespace
    
    bool IsQuantized(const TensorT& tensor) {
      return (tensor.quantization != nullptr) &&
             !tensor.quantization->zero_point.empty();
    }
    
    // Returns the correct type for a quantized tensor.
    // We have a special case for constants since they have a higher minimum value.
    StatusOr<QuantizedType> GetQuantizedType(const TensorT& tensor, Builder builder,
    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/lite/tests/lower-static-tensor-list.mlir

      %0 = "tf.TensorListFromTensor"(%arg0, %arg1) : (tensor<*xf32>, tensor<1xi32>) -> tensor<!tf_type.variant<tensor<*xf32>>>
      %1 = "tf.TensorListGetItem"(%0, %arg2, %arg1) : (tensor<!tf_type.variant<tensor<*xf32>>>, tensor<i32>, tensor<1xi32>) -> tensor<*xf32>
      %2 = "tf.TensorListStack"(%0, %arg1) : (tensor<!tf_type.variant<tensor<*xf32>>>, tensor<1xi32>) -> tensor<*xf32>
      func.return %1, %2 : tensor<*xf32>, tensor<*xf32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 39.9K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/ops.h

      DataType data_type() const { return data_type_; }
      Status status() const { return status_; }
      const Tensor& tensor() const { return tensor_; }
    
     private:
      Status status_;
      Output output_ = Output(Operation(nullptr), 0);
      Tensor tensor_;
      const std::string node_name_ = "";
      int32 index_ = 0;
      DataType data_type_ = DT_INVALID;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. tensorflow/c/tf_tensor.cc

        auto* ret = emptyTensor->tensor;
        delete emptyTensor;
        return ret;
      }
    
      Tensor tensor;
      if (!tensor.CopyFrom(src, src.shape())) {
        return nullptr;
      }
      return new tensorflow::TensorInterface(std::move(tensor));
    }
    
    // Non-static for testing.
    TF_Tensor* TF_TensorFromTensor(const tensorflow::Tensor& src, Status* status) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.td

    def PromiseOp: TensorflowMlrt_Op<"promise", []> {
      let summary = "Set a tensor in a promise";
    
      let description = [{
        Set a tensor in a promise.
    
        $promise: A value of type !mlrt.promise. The underlying value must be a tensorflow tensor.
        $tensor: A tensorflow tensor.
      }];
    
      let arguments = (ins
        MlrtPromiseType:$promise,
        TFTensorType:$tensor
      );
    
      let assemblyFormat = "operands attr-dict";
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc

    // as tensor names may have changed via MLIR constant folding process.
    bool ExpectEqualTensor(const Tensor* tensor, const Tensor* expected_tensor) {
      return (tensor->is_variable() == expected_tensor->is_variable()) &&
             (GetAsVector(tensor->shape()) ==
              GetAsVector(expected_tensor->shape()));
    }
    
    // Finds the match of the quantized tensor from the possible tensors. Each
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.cc

        for (const int itensor : operations_[ioperation].tensors) {
          if (const auto& tensor = tensors_[itensor];
              tensor.first_use() >= begin && tensor.first_use() < end &&
              tensor.last_use() > peak_loc) {
            for (const int ioperation : tensor.operations) {
              // We return the earliest dependence on any output tensor.
              if (ioperation > peak_loc && ioperation < best) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  8. tensorflow/c/eager/gradients.cc

          });
    }
    bool Tape::ShouldRecord(
        absl::Span<const AbstractTensorHandle* const> tensors) const {
      std::vector<int64_t> tensor_ids(tensors.size());
      std::vector<tensorflow::DataType> tensor_dtypes(tensors.size());
      for (int i = 0; i < tensors.size(); i++) {
        tensor_ids[i] = ToId(tensors[i]);
        tensor_dtypes[i] = tensors[i]->DataType();
      }
      return GradientTape::ShouldRecord(tensor_ids, tensor_dtypes);
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.td

        [Pure, CoreRT_TypedAttributeTrait,
         TFRT_CostFunctionInterface, TFRT_FixedCost<1>]> {
      let summary = "Create a tensorflow tensor from serialized tensor proto";
    
      let description = [{
        Create a tensorflow tensor from serilaized tensor proto.
    
        Example:
          %tensor = tfrt_fallback_async.const_tensor_proto "<serialized proto content>"
      }];
    
      let arguments = (ins
        StrAttr:$serialized_tensor_proto
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 15:01:21 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. tensorflow/c/eager/parallel_device/parallel_device.cc

                                           TFE_TensorHandle* tensor,
                                           TF_Status* status, void* device_info) {
      TF_SetStatus(
          status, TF_UNIMPLEMENTED,
          absl::StrCat("Trying to copy a tensor ",
                       tensorflow::unwrap(tensor)->DebugString(),
                       " on to a parallel device. Pack non-parallel "
                       "tensors for each device into a parallel tensor explicitly.")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 29 22:05:31 UTC 2023
    - 18.3K bytes
    - Viewed (0)
Back to top