Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 107 for Dtype (0.06 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc

        return mlir::TF::ShapeAttr::get(type.getContext(), tensor_type.getShape());
      }
    
      // If type is not a RankedTensor or UnrankedTensor, it must be a scalar.
      // Empty TensorShape indicates a scalar.
      return mlir::TF::ShapeAttr::get(type.getContext(), ArrayRef<int64_t>());
    }
    
    absl::StatusOr<TensorSpecProto> ConvertTypeToTensorSpecProto(
        const mlir::Type& type) {
      DataType dtype;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  2. tensorflow/c/kernels.cc

                                         const char* attr_name,
                                         const TF_DataType type,
                                         TF_Status* status) {
      tensorflow::DataType dtype = static_cast<tensorflow::DataType>(type);
      tensorflow::AddTypeConstraint(kernel_builder, attr_name, dtype, status);
    }
    
    void TF_KernelBuilder_HostMemory(TF_KernelBuilder* kernel_builder,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 36K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/utils/test_metadata_config.cc

            xla_shape.dimensions(), &tensor_shape));
        arg_shapes.emplace_back(tensor_shape);
    
        DataType dtype;
        TF_RETURN_IF_ERROR(ConvertToDataType(input_type, &dtype));
    
        auto metadata_arg = metadata_proto.add_args();
        metadata_arg->set_kind(tpu::TPUCompileMetadataProto::Arg::PARAMETER);
        metadata_arg->set_dtype(dtype);
      }
    
      return absl::OkStatus();
    }
    
    absl::Status SetupReturnValues(mlir::ModuleOp module,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc

    //     inputs: {
    //       key  : "a"
    //       value: {
    //         name : "serving_default_a:0"
    //         dtype: DT_FLOAT
    //         tensor_shape: {
    //         }
    //       }
    //     }
    //     inputs: {
    //       key  : "b"
    //       value: {
    //         name : "serving_default_b:0"
    //         dtype: DT_FLOAT
    //         tensor_shape: {
    //         }
    //       }
    //     }
    //     outputs: {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 08:08:45 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.cc

      }
    
      tensorflow::DataType dtype;
      auto status = tensorflow::ConvertToDataType(operand.getType(), &dtype);
      if (!status.ok()) {
        op->emitRemark() << "skipping legalization due to " << status.ToString();
        return tensorflow::XlaExpression::Invalid();
      }
      return tensorflow::XlaExpression::XlaOp(xla_op, dtype);
    }
    
    }  // namespace mhlo
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

        }
        if (TFE_TensorHandleDataType(component.get()) != dtype) {
          TF_SetStatus(status, TF_INTERNAL,
                       "Components of a ParallelTensor must all have "
                       "the same dtype");
          return nullptr;
        }
      }
      return std::unique_ptr<ParallelTensor>(
          new ParallelTensor(parallel_device, std::move(components), shape, dtype));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 07:47:20 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  7. tensorflow/c/kernels_experimental.cc

        AllocatorAttributes attr;
        if (cc_input.dtype() == ::tensorflow::DT_VARIANT) {
          attr.set_on_host(true);
        }
        TF_RETURN_IF_ERROR(cc_ctx->allocate_temp(cc_input.dtype(), cc_input.shape(),
                                                 cc_out, attr));
    
        switch (cc_input.dtype()) {
          case ::tensorflow::DT_INVALID: {
            *cc_out = Tensor(::tensorflow::DT_INVALID);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 06:12:29 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_config.cc

    #include "llvm/Support/Debug.h"
    #include "llvm/Support/raw_ostream.h"
    #include "tensorflow/core/framework/types.pb.h"
    
    // Returns whether the given dtype is a quantization type in TensorFlow.
    static bool IsQuantizationType(tensorflow::DataType dtype) {
      switch (dtype) {
        case tensorflow::DT_QINT8:
        case tensorflow::DT_QUINT8:
        case tensorflow::DT_QINT16:
        case tensorflow::DT_QUINT16:
        case tensorflow::DT_QINT32:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_tpu_device.cc

        }
    
        se::Stream* const src_compute_stream = src_xla_context->stream();
        TF_RET_CHECK(src_compute_stream != nullptr);
        TF_RET_CHECK(input->dtype() == output->dtype())
            << "input type: " << DataTypeString(input->dtype()) << " output type "
            << DataTypeString(output->dtype());
        TF_RET_CHECK(input->shape() == output->shape());
        TF_RET_CHECK(DMAHelper::CanUseDMA(input));
        auto* const src_compute_stream_impl =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_unified_experimental.cc

      TF_DeleteExecutionContext(ctx);
      return wrap(func);
    }
    
    TF_AbstractTensor* TF_AddFunctionParameter(TF_ExecutionContext* func,
                                               TF_DataType dtype, TF_Shape shape,
                                               TF_Status* s) {
      DCHECK_GE(shape.num_dims, -1);
      TracingTensorHandle* t;
      TracingContext* tracing_ctx = dyn_cast<TracingContext>(unwrap(func));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 10:15:17 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top