Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 295 for TensorT (0.16 sec)

  1. tensorflow/compiler/mlir/lite/tests/end2end/fake_quant_per_channel_4bit.pbtxt

    }
    
    # MLIR-LABEL: func @main
    # MLIR-SAME:  (%[[ARG_0:[a-z0-9]+]]: tensor<1x1x1x256x!quant.uniform<i8:f32, 0.21632751372549019:27>>) -> tensor<1x6x31x!quant.uniform<i8:f32, 0.09363494573854933:22>>
    # MLIR-SAME:  control_outputs = ""
    # MLIR-SAME:  inputs = "input"
    # MLIR-SAME:  outputs = "output"
    # MLIR:         %[[shape:.*]] = arith.constant dense<[1, -1, 31]> : tensor<3xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/constant-fold.mlir

    }
    
    // CHECK-LABEL: func @testPow
    // CHECK-SAME:(%[[ARG_0:.*]]: tensor<4xf32>, %[[ARG_1:.*]]: tensor<4xf32>) -> (tensor<4xf32>, tensor<4xf32>, tensor<4xf32>)
    func.func @testPow(%arg0: tensor<4xf32>, %arg1: tensor<4xf32>) -> (tensor<4xf32>, tensor<4xf32>, tensor<4xf32>) {
    
      %cst_zero = arith.constant dense<0.0> : tensor<f32>
      %cst_one = arith.constant dense<1.0> : tensor<f32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 31 23:22:24 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-communication.mlir

        "mhlo.return"(%0, %1) : (tensor<f32>, tensor<f32>) -> ()
      },  {
        "mhlo.return"(%0, %1) : (tensor<f32>, tensor<f32>) -> ()
      // CHECK:      (tensor<i1>) -> (tensor<f32>, tensor<f32>, !mhlo.token)
      }) : (tensor<i1>) -> (tensor<f32>, tensor<f32>)
    
      // CHECK:      [[IF_SUBTUPLE_RESULT:%.*]] = mhlo.tuple [[IF]]#0, [[IF]]#1
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 08 18:24:20 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  4. tensorflow/c/kernels_experimental.cc

      // copy-on-read mode is false.
      if (var->tensor()->RefCountIsOne()) {
        var->copy_on_read_mode.store(true);
        return absl::OkStatus();
      }
      Tensor tmp;
      if (variantType) {
        AllocatorAttributes attr;
        attr.set_on_host(true);
        TF_RETURN_IF_ERROR(context->allocate_temp(
            var->tensor()->dtype(), var->tensor()->shape(), &tmp, attr));
    
        const auto elements_in = var->tensor()->flat<Variant>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 06:12:29 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_device.cc

    // on-device shape. This is accurate for CPU and GPU devices that neither
    // transpose nor pad tensors.
    Status DefaultPaddedShapeFn(const Tensor& tensor, xla::Shape* shape) {
      const tensorflow::XlaTensor* xla_tensor =
          tensorflow::XlaTensor::FromTensor(&tensor);
      if (xla_tensor == nullptr) {
        return TensorShapeToXLAShape(tensor.dtype(), tensor.shape(), shape);
      }
    
      const xla::ShapedBuffer& shaped_buffer = xla_tensor->shaped_buffer();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 21:05:42 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/passes.h

    // Legalize TensorList Ops iff all of them are supported.
    std::unique_ptr<OperationPass<ModuleOp>> CreateLegalizeTensorListPass();
    
    // Reduce the type precision of some tensor types if all values within that
    // tensor are within the range of the reduced precision.
    std::unique_ptr<OperationPass<ModuleOp>> CreateReduceTypePrecisionPass();
    
    // Convervatively pushes transposes through elementwise ops to prepare
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 07 21:29:34 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_experimental.h

                                                 TF_Status* status,
                                                 void* device_info);
    
      // Method to copy a tensor from the custom device to a target device.
      TFE_TensorHandle* (*copy_tensor_from_device)(TFE_Context* context,
                                                   TFE_TensorHandle* tensor,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc

      }
    
      return true;
    }
    
    // Calculates other_tensor_zp * tensor for zero point offset calculation.
    // Things to do:
    //  1. Reduce the tensor (which is an input of XlaDotV2) with contracting
    //     dimensions of XlaDotV2.
    //     - The resultant dimension must match with XlaDotV2 resultant dimension
    //  2. Multiply it with zero point from the other tensor.
    // We decided to use tf.Einsum for step 1, since it would require transposes/
    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/quantization/tensorflow/passes/prepare_quantize_drq.cc

      // criteria for determining quantizable ops differs by the inference type.
      bool getQuantizableOps(arith::ConstantOp op,
                             QuantizationUnits& quantizable_ops) const {
        // Non-float tensors do not need quantization.
        auto type = mlir::dyn_cast<ShapedType>(op.getType());
        if (!type || !type.getElementType().isF32()) return false;
    
        Value value = op.getResult();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api.cc

            "TFE_TensorHandleDeviceMemorySize may not be called on a ",
            handle->TypeString(), " tensor handle.");
        return 0;
      }
      const tensorflow::Tensor* tensor;
      status->status = handle->Tensor(&tensor);
      if (!status->status.ok()) {
        return 0;
      }
      return tensor->TotalBytes();
    }
    
    TFE_Op* TFE_NewOp(TFE_Context* ctx, const char* op_or_function_name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
Back to top