Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 32 for perblock (2.87 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tpu_parallel_execute_sink_resource_write.cc

      auto* resource_handle_op = assign_var.getResource().getDefiningOp();
      if (resource_handle_op == parallel_execute) return nullptr;
    
      if (resource_handle_op &&
          resource_handle_op->getBlock() ==
              parallel_execute.getOperation()->getBlock() &&
          parallel_execute.getOperation()->isBeforeInBlock(resource_handle_op))
        return nullptr;
    
      return assign_var;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 06 04:46:18 UTC 2022
    - 6.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tf_executor_to_functional.cc

    // order of ops in tf_executor.graph.
    LogicalResult LiftIslandOpInnerOpsFromGraph(tf_executor::GraphOp graph) {
      auto graph_position = graph.getOperation()->getIterator();
      Block* parent_block = graph.getOperation()->getBlock();
      for (Operation& op : graph.GetBody().without_terminator()) {
        auto island_op = llvm::dyn_cast<tf_executor::IslandOp>(op);
        if (!island_op)
          return op.emitOpError()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util.cc

      int cluster_idx = -1;
      for (size_t child_idx = 0;
           child_idx < old_parallel_execute.getRegions().size(); ++child_idx) {
        auto& block = old_parallel_execute.GetRegionBlockWithIndex(child_idx);
        if (cluster_func->getBlock() == &block) {
          assert(cluster_idx == -1);
          cluster_idx = child_idx;
        }
      }
      assert(cluster_idx != -1);
    
      // Move children that are preserved.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 13 03:57:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/materialize_mlir_passthrough_op.cc

        Block &block = body.front();
        for (const auto &arg_mapping :
             llvm::zip(block.getArguments(), op->getOperands())) {
          std::get<0>(arg_mapping).replaceAllUsesWith(std::get<1>(arg_mapping));
        }
        op->getBlock()->getOperations().splice(op->getIterator(),
                                               block.getOperations(), block.begin(),
                                               std::prev(block.end()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/topological_sort.cc

        int incoming_ctrl_edges = 0;
        int incoming_data_edges = 0;
        op.walk([&](Operation* child) {
          ancestor[child] = &op;
          for (Operation* predecessor : ctrlPredecessors(child)) {
            if (predecessor->getBlock() == &block) {
              incoming_ctrl_edges++;
            }
          }
          for (Value v : child->getOperands()) {
            if (v.getParentBlock() == &block) {
              incoming_data_edges++;
            }
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 08 17:01:11 UTC 2022
    - 5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc

        return failure();
    
      // Move all inner ops of the launch to the block containing the launch.
      auto body = launch.GetBody().without_terminator();
      Operation* launch_op = launch.getOperation();
      launch_op->getBlock()->getOperations().splice(
          launch_op->getIterator(), launch.GetBody().getOperations(), body.begin(),
          body.end());
    
      launch.erase();
    
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_reorder_replicate_and_partitioned_inputs.cc

                input.getDefiningOp());
          }))
        return replicated_input.emitOpError()
               << "expects all inputs from 'tf.TPUPartitionedInputV2' ops";
    
      const auto metadata_iter =
          replicated_input->getBlock()->getOps<TF::TPUReplicateMetadataOp>();
      TF::TPUReplicateMetadataOp metadata;
      if (!metadata_iter.empty()) metadata = *(metadata_iter.begin());
    
      auto first_partitioned_input = llvm::cast<TF::TPUPartitionedInputV2Op>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 24 23:08:55 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. pkg/volume/csi/expander_test.go

    				if tc.fsVolume {
    					if capability.GetMount() == nil {
    						t.Errorf("For %s: expected mount accesstype got: %v", tc.name, capability)
    					}
    				} else {
    					if capability.GetBlock() == nil {
    						t.Errorf("For %s: expected block accesstype got: %v", tc.name, capability)
    					}
    				}
    			}
    		})
    	}
    }
    
    func TestNodeExpandNoClientError(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 03:58:36 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/lower_variable_ops_to_ml_program.cc

        if (!initial_value) {
          initial_value = builder.getArrayAttr({});
        }
      }
    
      if (!type) return nullptr;
    
      auto globalOp = builder.create<ml_program::GlobalOp>(
          builder.getBlock()->getParentOp()->getLoc(), name, type, false,
          initial_value, nullptr);
      symbol_table.insert(globalOp);
    
      return globalOp;
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/python/mlir_wrapper/mlir_wrapper.pyi

        def setInsertionPoint(self, arg0: Block, arg1: Block_Iterator) -> None: ...
    
    class OpBuilder_InsertionPoint:
        def __init__(self, *args, **kwargs) -> None: ...
        def getBlock(self) -> Block: ...
    
    class OpResult(Value):
        def __init__(self, *args, **kwargs) -> None: ...
    
    class Operation:
        def __init__(self, *args, **kwargs) -> None: ...
        def dump(self) -> None: ...
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 09 17:10:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top