Home
last modified time | relevance | path

Searched refs:Mesh (Results 1 – 25 of 97) sorted by relevance

1234

/external/tensorflow/tensorflow/dtensor/cc/
Dtensor_layout.h89 class Mesh {
95 static Mesh Empty();
97 Mesh() = default;
100 static StatusOr<Mesh> ParseFromProto(const MeshProto& proto);
108 static StatusOr<Mesh> FromString(const std::string& str);
114 static StatusOr<Mesh> GetAbstractMesh(
117 static StatusOr<Mesh> GetMesh(
146 StatusOr<Mesh> ToDeviceType(const std::string& device_type) const;
190 bool operator==(const Mesh& b) const;
191 bool operator!=(const Mesh& b) const { return !((*this) == b); }
[all …]
Dtensor_layout.cc52 constexpr const char* Mesh::kEmptyMeshString;
61 inline std::vector<DeviceLocation> ComputeDeviceLocations(const Mesh* mesh) { in ComputeDeviceLocations()
175 std::map<std::string, std::vector<int>>& Mesh::tpu_core_ids() { in tpu_core_ids()
181 std::string& Mesh::tpu_host_mesh() { in tpu_host_mesh()
187 StatusOr<Mesh> Mesh::ParseFromProto(const MeshProto& proto) { in ParseFromProto()
188 Mesh mesh; in ParseFromProto()
228 StatusOr<Mesh> Mesh::GetAbstractMesh( in GetAbstractMesh()
230 Mesh mesh; in GetAbstractMesh()
251 StatusOr<Mesh> Mesh::GetMesh(const std::string& name, in GetMesh()
257 TF_ASSIGN_OR_RETURN(Mesh mesh, GetAbstractMesh(name, mesh_dims)); in GetMesh()
[all …]
/external/tensorflow/tensorflow/dtensor/mlir/dtensor_dialect/ir/
Ddtensor_attributes.cc30 using Mesh = tensorflow::dtensor::Mesh; typedef
31 using KeyTy = Mesh;
33 explicit MeshAttrStorage(Mesh mesh) : mesh(std::move(mesh)) {} in MeshAttrStorage()
38 const Mesh& mesh = key; in hashKey()
46 Mesh mesh;
50 MeshAttr MeshAttr::get(MLIRContext* context, const Mesh& mesh) { in get()
54 const MeshAttr::Mesh& MeshAttr::getValue() const { return getImpl()->mesh; } in getValue()
Ddtensor_attributes.h38 using Mesh = tensorflow::dtensor::Mesh; variable
41 static MeshAttr get(MLIRContext* context, const Mesh& mesh);
44 const Mesh& getValue() const;
53 using Mesh = tensorflow::dtensor::Mesh; variable
Dops.cc70 using Mesh = tensorflow::dtensor::Mesh; in ParseMeshAttr() typedef
71 using MeshOr = tensorflow::dtensor::StatusOr<Mesh>; in ParseMeshAttr()
72 MeshOr mesh_or = Mesh::FromString(mesh_str); in ParseMeshAttr()
/external/tensorflow/tensorflow/dtensor/tests/
Dtensor_layout_test.cc71 Mesh mesh = Mesh::Empty(); in TEST_F()
73 EXPECT_EQ(mesh_str, Mesh::kEmptyMeshString); in TEST_F()
115 Mesh mesh = BatchLayout().mesh(); in TEST_F()
118 EqualsProto(Mesh::FromString(mesh_str).ValueOrDie().ToProto())); in TEST_F()
122 Mesh mesh = BatchLayout().mesh(); in TEST_F()
220 Mesh reduced_mesh = replicated_layout.ReducedMesh(); in TEST_F()
227 Mesh original_mesh = layout.mesh(); in TEST_F()
228 Mesh reduced_mesh = layout.ReducedMesh(); in TEST_F()
241 Mesh reduced_mesh = layout->ReducedMesh(); in TEST_F()
256 Mesh reduced_mesh = layout->ReducedMesh(); in TEST_F()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/video/spherical/
DProjection.java148 return new Projection(new Mesh(subMesh), stereoMode); in createEquirectangular()
152 public final Mesh leftMesh;
157 public final Mesh rightMesh;
169 public Projection(Mesh mesh, int stereoMode) { in Projection()
181 public Projection(Mesh leftMesh, Mesh rightMesh, int stereoMode) { in Projection()
219 public static final class Mesh { class in Projection
222 public Mesh(SubMesh... subMeshes) { in Mesh() method in Projection.Mesh
DProjectionDecoder.java23 import com.google.android.exoplayer2.video.spherical.Projection.Mesh;
65 ArrayList<Mesh> meshes = null; in decode()
94 private static @Nullable ArrayList<Mesh> parseProj(ParsableByteArray input) { in parseProj()
115 private static @Nullable ArrayList<Mesh> parseMshp(ParsableByteArray input) { in parseMshp()
140 private static @Nullable ArrayList<Mesh> parseRawMshpData(ParsableByteArray input) { in parseRawMshpData()
141 ArrayList<Mesh> meshes = new ArrayList<>(); in parseRawMshpData()
151 Mesh mesh = parseMesh(input); in parseRawMshpData()
163 private static @Nullable Mesh parseMesh(ParsableByteArray input) { in parseMesh()
228 return new Mesh(subMeshes); in parseMesh()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/video/spherical/
DProjection.java152 return new Projection(new Mesh(subMesh), stereoMode); in createEquirectangular()
156 public final Mesh leftMesh;
161 public final Mesh rightMesh;
173 public Projection(Mesh mesh, int stereoMode) { in Projection()
185 public Projection(Mesh leftMesh, Mesh rightMesh, int stereoMode) { in Projection()
223 public static final class Mesh { class in Projection
226 public Mesh(SubMesh... subMeshes) { in Mesh() method in Projection.Mesh
DProjectionDecoder.java23 import com.google.android.exoplayer2.video.spherical.Projection.Mesh;
66 ArrayList<Mesh> meshes = null; in decode()
96 private static ArrayList<Mesh> parseProj(ParsableByteArray input) { in parseProj()
118 private static ArrayList<Mesh> parseMshp(ParsableByteArray input) { in parseMshp()
144 private static ArrayList<Mesh> parseRawMshpData(ParsableByteArray input) { in parseRawMshpData()
145 ArrayList<Mesh> meshes = new ArrayList<>(); in parseRawMshpData()
155 Mesh mesh = parseMesh(input); in parseRawMshpData()
168 private static Mesh parseMesh(ParsableByteArray input) { in parseMesh()
233 return new Mesh(subMeshes); in parseMesh()
/external/tensorflow/tensorflow/dtensor/mlir/
Dmesh_propagation.cc56 absl::optional<Mesh>* out) { in ExtractMeshFromBlockArgument()
77 Mesh::FromString(mesh_attr.getValue().str()); in ExtractMeshFromBlockArgument()
90 absl::optional<Mesh>* out) { in ExtractMeshFromOpOutput()
118 mlir::OpOperand* operand, absl::optional<Mesh>* out) { in ExtractMeshFromOperand()
122 [](mlir::Location loc, absl::optional<Mesh>& mesh, in ExtractMeshFromOperand()
123 absl::optional<Mesh>& operand_mesh) -> mlir::LogicalResult { in ExtractMeshFromOperand()
145 absl::optional<Mesh> operand_mesh; in ExtractMeshFromOperand()
148 absl::optional<Mesh> mesh; in ExtractMeshFromOperand()
162 absl::optional<Mesh> mesh; in ExtractMeshFromOperand()
190 mlir::tf_device::ClusterOp cluster, absl::optional<Mesh>* mesh, in InferMeshFromInputs()
[all …]
Dmerge_clusters.cc64 Mesh* mesh_output) { in ExtractMeshFromCluster()
68 const absl::optional<Mesh>& mesh_or_null = *mesh_or_status; in ExtractMeshFromCluster()
230 Mesh cluster_mesh; in InlineNestedDeviceClusters()
234 Mesh parent_cluster_mesh; in InlineNestedDeviceClusters()
265 void CloneEmptyIfWithPredicate(mlir::TF::IfRegionOp if_region, const Mesh& mesh, in CloneEmptyIfWithPredicate()
366 Mesh nested_mesh; in DecomposeIf()
487 std::map<Mesh, llvm::SmallVector<mlir::tf_device::ClusterOp, 4>> cluster_map; in MergeClusters()
488 std::vector<Mesh> meshes; in MergeClusters()
490 Mesh mesh; in MergeClusters()
504 std::sort(meshes.begin(), meshes.end(), [](const Mesh& a, const Mesh& b) { in MergeClusters()
[all …]
Dlower_send_recv.cc50 Mesh* mesh_output) { in ExtractMeshFromCluster()
54 const absl::optional<Mesh>& mesh_or_null = *mesh_or_status; in ExtractMeshFromCluster()
81 const Mesh recv_mesh = dtensor_recv.layout().mesh(); in LowerDTensorSendRecvsOps()
83 Mesh send_mesh; in LowerDTensorSendRecvsOps()
Dtpu_integration.cc56 void AddMetadataToTPUCluster(const Mesh& mesh_config, in AddMetadataToTPUCluster()
75 mlir::ModuleOp module, llvm::SmallVectorImpl<Mesh>* tpu_meshs, in IdentifyTPUFunctions()
81 auto mesh_or_status = Mesh::FromString(string(call.config())); in IdentifyTPUFunctions()
141 llvm::SmallVector<Mesh, 4> tpu_meshes; in runOnOperation()
Dmove_compilation_to_host.cc54 std::map<Mesh, mlir::TF::StatefulPartitionedCallOp>* function_map) { in IdentifyAndValidateMeshComputations() argument
62 const Mesh& computation_mesh = mesh_or->value(); in IdentifyAndValidateMeshComputations()
87 const Mesh& mesh, mlir::ModuleOp module, mlir::func::FuncOp function, in CreateSendRecvOpsToTransferProgramKey()
178 const Mesh& receiving_function_mesh;
188 const Mesh& host_mesh, mlir::ModuleOp module, in SendRecvCompilationKey()
212 std::map<Mesh, mlir::TF::StatefulPartitionedCallOp>& computation_map, in HandleCompilationOps() argument
225 Mesh host_mesh; in HandleCompilationOps()
382 std::map<Mesh, mlir::TF::StatefulPartitionedCallOp> computation_map; in runOnOperation()
Dlayout_parsing.cc136 StatusOr<Mesh> ExtractDeviceMeshEnclosingCluster(mlir::Operation* op) { in ExtractDeviceMeshEnclosingCluster()
149 StatusOr<absl::optional<Mesh>> ExtractDeviceMeshFromOp(mlir::Operation* op) { in ExtractDeviceMeshFromOp()
150 absl::optional<Mesh> extracted_mesh; in ExtractDeviceMeshFromOp()
156 TF_ASSIGN_OR_RETURN(Mesh mesh, in ExtractDeviceMeshFromOp()
157 Mesh::FromString(mesh_str_attr.getValue().str())); in ExtractDeviceMeshFromOp()
Dhandle_cross_cluster_dependencies.cc56 Mesh* mesh_output) { in ExtractMeshFromCluster()
141 Mesh mesh; in CloneConstantsAcrossMesh()
157 Mesh input_mesh; in CloneConstantsAcrossMesh()
269 Mesh current_mesh; in ReplaceCopyToMeshWithVirtualSendRecv()
288 Mesh input_mesh; in ReplaceCopyToMeshWithVirtualSendRecv()
Dundo_merge_const_across_mesh.cc45 llvm::SmallVector<Mesh> known_meshes; in runOnOperation()
53 const Mesh& mesh = layout.mesh(); in runOnOperation()
/external/skia/src/gpu/ganesh/ops/
DDrawMeshOp.cpp509 class Mesh { class in __anon19f680500111::MeshOp
511 Mesh() = delete;
512 explicit Mesh(const SkMesh& mesh);
513 Mesh(sk_sp<SkVertices>, const SkMatrix& viewMatrix);
514 Mesh(const Mesh&) = delete;
515 Mesh(Mesh&& m);
517 Mesh& operator=(const Mesh&) = delete;
518 Mesh& operator=(Mesh&&) = delete; // not used by SkSTArray but could be implemented.
520 ~Mesh();
603 SkSTArray<1, Mesh> fMeshes;
[all …]
/external/tensorflow/tensorflow/dtensor/mlir/utils/
Dupdate_tpu_metadata.cc76 mlir::LogicalResult UpdateTPUCompileMetadata(const Mesh& mesh_config, in UpdateTPUCompileMetadata()
112 if (!Mesh::tpu_core_ids().empty() && in UpdateTPUCompileMetadata()
115 if (Mesh::tpu_core_ids().count(mesh_name) == 0) { in UpdateTPUCompileMetadata()
121 const std::vector<int>& tpu_core_ids = Mesh::tpu_core_ids()[mesh_name]; in UpdateTPUCompileMetadata()
158 auto mesh_or_status = Mesh::FromString(call_config.str()); in runOnOperation()
/external/tensorflow/tensorflow/dtensor/python/
Dmesh_util.py34 device_type: str, mesh: layout.Mesh) -> None: argument
74 device_type: Optional[str] = None) -> layout.Mesh:
114 mesh = layout.Mesh(
133 device_type: Optional[str] = None) -> layout.Mesh:
199 mesh = layout.Mesh(
274 def barrier(mesh: layout.Mesh, barrier_name: Optional[str] = None): argument
Dlayout.py50 class Mesh(object): class
300 return Mesh(dims, global_device_ids, local_device_ids, local_devices, name,
342 return Mesh.from_proto(mesh_proto)
363 h_mesh = Mesh(
527 def __init__(self, sharding_specs: List[str], mesh: Mesh): argument
540 if not isinstance(mesh, Mesh):
587 def batch_sharded(mesh: Mesh, batch_dim: str, rank: int) -> 'Layout': argument
609 mesh = Mesh.from_proto(layout_proto.mesh_config)
626 mesh = Mesh.from_string(mesh_str)
631 def inner_sharded(mesh: Mesh, inner_dim: str, rank: int) -> 'Layout': argument
[all …]
Ddtensor_device.py51 def __init__(self, meshes: List[layout_lib.Mesh], is_async=True): argument
61 if any(not isinstance(mesh, layout_lib.Mesh) for mesh in meshes):
120 def _create_embedding_host_mesh(self, tpu_mesh: layout_lib.Mesh): argument
147 return layout_lib.Mesh(
153 def _register_mesh(self, mesh: layout_lib.Mesh): argument
179 def meshes(self) -> Set[layout_lib.Mesh]:
382 def _experimental_default_mesh(self, mesh: layout_lib.Mesh): argument
Dsave_restore.py35 mesh: layout_lib.Mesh, argument
84 mesh: layout_lib.Mesh, argument
154 mesh: layout_lib.Mesh, argument
226 def name_based_save(mesh: layout_lib.Mesh, checkpoint_prefix: Union[str, argument
/external/tensorflow/tensorflow/dtensor/mlir/expansions/
Ddtensor_op_spmd_expander.cc75 const Mesh& send_mesh = send_layout.mesh(); in ValidateSendRecvLayoutConfiguration()
76 const Mesh& recv_mesh = recv_layout.mesh(); in ValidateSendRecvLayoutConfiguration()
123 bool SendRecvOpUsesXla(const Mesh& send_mesh, const Mesh& recv_mesh) { in SendRecvOpUsesXla()
240 const Mesh& send_mesh = send_layout.mesh(); in IsOneToOneHostMeshTransfer()
241 const Mesh& recv_mesh = recv_layout.mesh(); in IsOneToOneHostMeshTransfer()
307 TF_ASSIGN_OR_RETURN(absl::optional<Mesh> mesh, in ExpandOp()
346 TF_ASSIGN_OR_RETURN(const Mesh recv_mesh, in ExpandOp()
403 TF_ASSIGN_OR_RETURN(const Mesh send_mesh, in ExpandOp()
411 const Mesh& recv_mesh = recv_layout.mesh(); in ExpandOp()

1234