Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 90 for eraseOp (0.53 sec)

  1. tensorflow/compiler/mlir/lite/utils/utils.h

      // as a transpose.
      if (in_shape.size() != out_shape.size()) {
        return false;
      }
    
      in_shape.erase(std::remove(in_shape.begin(), in_shape.end(), 1),
                     in_shape.end());
      out_shape.erase(std::remove(out_shape.begin(), out_shape.end(), 1),
                      out_shape.end());
      return in_shape == out_shape;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc

                                       llvm::ArrayRef<Value>(), else_block,
                                       llvm::ArrayRef<Value>());
    
      // Finally, delete the op in question.
      op_inst->erase();
      return success();
    }
    
    // Given a functional WhileOp, transforms the enclosing code to eliminate it
    // completely from the IR, breaking it into operations to execute the loop body
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 13 11:42:59 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

      builder->setInsertionPoint(old_terminator);
      builder->create<mlir::tf_device::ReturnOp>(old_terminator->getLoc(),
                                                 new_cluster_results);
      old_terminator->erase();
    
      builder->setInsertionPoint(cluster);
      llvm::SmallVector<Type, 4> new_cluster_result_types;
      new_cluster_result_types.reserve(new_cluster_results.size());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/transforms/get_alternative_subgraph.cc

          // see if we need to erase the func op.
          // Ideally it would be nice if we can utilize dynamic illegal op to do
          // the job.
          if (device_inference_type.hardware != "CPU" &&
              !IsAllSupportedbySpec(cloned_func, device_inference_type)) {
            cloned_func.erase();
          }
        }
      }
    
      // Perform the device-specific optimization last.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

            TransposeOp transpose = tranpose_op;
            transpose.getOperation()->moveBefore(op);
            transpose.setOperand(0, operand->get());
            transpose.setOperand(1, permutation_op);
            transpose_ops->erase(it);
            return transpose;
          }
        }
      }
      return nullptr;
    }
    
    #define GEN_PASS_DEF_LAYOUTASSIGNMENTPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/encapsulate_xla_computations_pass.cc

          VLOG(2) << "Deleting node " << node->DebugString();
          // Ensure that we do not attempt to add control edges to nodes that are
          // deleted.
          control_inputs.erase(node);
          control_outputs.erase(node);
          graph->RemoveNode(node);
        }
    
        TF_ASSIGN_OR_RETURN(Node * xla_launch, graph->AddNode(def));
        for (int i = 0, end = data_inputs.size(); i < end; ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/passes/decompose.cc

        }
    
        // Copy all the unregisted attributes to the new op.
        if (failed(CopyAllowedUnregisteredAttrs(op, new_op, defined_attrs))) {
          return WalkResult::interrupt();
        }
    
        op->erase();
        changed |= true;
        return WalkResult::advance();
      });
    
      // If `changed` is false, it is considered as a failure, so the recursive
      // rewrite will stop.
      return success(changed);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/ResidualProgramCompilerTest.kt

                    print("stage 2")
                """.replaceIndent()
            )
    
            val fragment = source.fragment(0..6, 8..29)
            val stage1 = Program.Plugins(fragment)
            val stage2 = source.map { it.erase(listOf(fragment.range)) }
            val stagedProgram = Dynamic(
                Static(ApplyPluginRequestsOf(stage1), ApplyBasePlugins),
                stage2
            )
    
            assertStagedTopLevelProjectProgram(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:45 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

            op->getLoc(), source_op.getToken(), /*input=*/op->getOperand(0),
            /*controlInputs=*/new_operands);
        op->replaceAllUsesWith(
            ValueRange({source_op.getOutput(), source_op.getControl()}));
        op->erase();
      });
    }
    
    class ConvertGraphOp : public OpConversionPattern<tfg::GraphOp> {
     public:
      using OpConversionPattern::OpConversionPattern;
    
      LogicalResult matchAndRewrite(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/memcombine.go

    			if v == root {
    				v.Aux = cv.Type // widen store type
    				v.Pos = pos
    				v.SetArg(0, ptr)
    				v.SetArg(1, cv)
    				v.SetArg(2, mem)
    			} else {
    				clobber(v)
    				v.Type = types.Types[types.TBOOL] // erase memory type
    			}
    		}
    		return true
    	}
    
    	// Check for consecutive loads as the source of the stores.
    	var loadMem *Value
    	var loadBase BaseAddress
    	var loadIdx int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top