Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for deim (0.05 sec)

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

        return mlir::TF::ShapeAttr::get(context, std::nullopt);
    
      llvm::SmallVector<int64_t, 4> dims;
      dims.reserve(shape.dim().size());
      for (const auto& dim : shape.dim()) {
        dims.push_back(dim.size() == kTFDynamicSize ? ShapedType::kDynamic
                                                    : dim.size());
      }
      return mlir::TF::ShapeAttr::get(context, llvm::ArrayRef(dims));
    }
    
    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/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

      IntegerAttr dim_i32;
      if (failed(ConvertToI32Attr(dim_int, &dim_i32))) return failure();
    
      int dim = dim_i32.getInt();
      if (dim < 0) dim += rank;
    
      const SmallVector<Value, 4>& slice_outputs = SliceOutputs(
          splitv_op, input, input_type, dim, splitv_op.getNumSplits(), &rewriter);
      rewriter.replaceOp(splitv_op, slice_outputs);
    
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api.cc

      if (h == nullptr) {
        status->status = tensorflow::errors::InvalidArgument("Invalid handle");
        return -1;
      }
    
      int64_t dim = -1;
      status->status = tensorflow::unwrap(h)->Dim(dim_index, &dim);
      return dim;
    }
    
    const char* TFE_TensorHandleDeviceName(TFE_TensorHandle* h, TF_Status* status) {
      if (h == nullptr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

      TF_ASSERT_OK(output_proto.status());
      EXPECT_EQ(output_proto->dtype(), DT_FLOAT);
      EXPECT_EQ(output_proto->shape().dim_size(), 3);
      EXPECT_EQ(output_proto->shape().dim().at(0).size(), 1);
      EXPECT_EQ(output_proto->shape().dim().at(1).size(), 2);
      EXPECT_EQ(output_proto->shape().dim().at(2).size(), 3);
    }
    
    TEST(ConvertTypeToTensorSpecProtoTest, ScalarTensorType) {
      mlir::MLIRContext context;
      mlir::Builder b(&context);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc

      for (const std::optional<llvm::ArrayRef<int64_t>>& shape : shapes) {
        TensorShapeProto& tshape = *shape_list.add_shape();
        if (shape.has_value()) {
          for (int64_t dim : *shape) {
            tshape.add_dim()->set_size(mlir::ShapedType::isDynamic(dim) ? -1 : dim);
          }
        } else {
          tshape.set_unknown_rank(true);
        }
      }
    
      // If shape is already set, override it. This can happen if we import
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. src/bytes/buffer_test.go

    					if v != byte(l+i) {
    						t.Fatalf("in %d,%d: Next(%d)[%d] = %d, want %d", i, j, k, l, v, l+i)
    					}
    				}
    			}
    		}
    	}
    }
    
    var readBytesTests = []struct {
    	buffer   string
    	delim    byte
    	expected []string
    	err      error
    }{
    	{"", 0, []string{""}, io.EOF},
    	{"a\x00", 0, []string{"a\x00"}, nil},
    	{"abbbaaaba", 'b', []string{"ab", "b", "b", "aaab"}, nil},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

      for (int i = 0; i < input_type.getRank(); ++i) {
        int64_t dim = input_type.getDimSize(i);
        if (i == axis) {
          if (dim % splits != 0) {
            return failure();
          }
          size_of_splits = dim / splits;
          output_shape.push_back(size_of_splits);
        } else {
          output_shape.push_back(dim);
        }
      }
    
      SmallVector<mlir::Type, 4> output_types;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

                                        Value* buffer) {
      llvm::SmallVector<int64_t, 8> buffer_shape;
      buffer_shape.push_back(max_size);
      for (int64_t dim : element_shape) {
        buffer_shape.push_back(dim);
      }
      auto zero = CreateScalarConst(0, builder, op->getLoc());
      if (getElementTypeOrSelf(zero.getType()) != element_dtype) {
        zero = builder.create<TF::CastOp>(
            op->getLoc(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc

      auto weight_shape = mlir::cast<ShapedType>(weight.getType());
    
      absl::flat_hash_set<int64_t> rhs_contracting_dims;
      for (auto dim : dnums.rhs_contracting_dimensions()) {
        rhs_contracting_dims.insert(dim);
      }
    
      SmallVector<int64_t> weight_output_dims;
      for (int64_t i = 0; i < weight_shape.getRank(); i++) {
        if (rhs_contracting_dims.find(i) == rhs_contracting_dims.end()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc

      ret.set_dtype(TflTypeToTfType(tensor.type));
    
      tensorflow::TensorShapeProto* shape = ret.mutable_tensor_shape();
      shape->set_unknown_rank(false);
      for (auto dim : tensor.shape) {
        shape->add_dim()->set_size(int64_t{dim});
      }
      // TensorFlow Lite uses tflite::DynamicBufer to encode vector of strings.
      if (tensor.type == tflite::TensorType_STRING) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top